Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/examples/Kaleidoscope/MCJIT/cached/toy-jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ static PrototypeAST *ParsePrototype() {
// Read the precedence if present.
if (CurTok == tok_number) {
if (NumVal < 1 || NumVal > 100)
return ErrorP("Invalid precedecnce: must be 1..100");
return ErrorP("Invalid precedence: must be 1..100");
BinaryPrecedence = (unsigned)NumVal;
getNextToken();
}
Expand Down Expand Up @@ -670,7 +670,7 @@ Value *BinaryExprAST::Codegen() {
if (Op == '=') {
// Assignment requires the LHS to be an identifier.
// For now, I'm building without RTTI because LLVM builds that way by
// default and so we need to build that way to use the command line supprt.
// default and so we need to build that way to use the command line support.
// If you build LLVM with RTTI this can be changed back to a dynamic_cast.
VariableExprAST *LHSE = static_cast<VariableExprAST*>(LHS);
if (!LHSE)
Expand Down
4 changes: 2 additions & 2 deletions llvm/examples/Kaleidoscope/MCJIT/cached/toy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ static PrototypeAST *ParsePrototype() {
// Read the precedence if present.
if (CurTok == tok_number) {
if (NumVal < 1 || NumVal > 100)
return ErrorP("Invalid precedecnce: must be 1..100");
return ErrorP("Invalid precedence: must be 1..100");
BinaryPrecedence = (unsigned)NumVal;
getNextToken();
}
Expand Down Expand Up @@ -647,7 +647,7 @@ std::string MakeLegalFunctionName(std::string Name)
// Start with what we have
NewName = Name;

// Look for a numberic first character
// Look for a numeric first character
if (NewName.find_first_of("0123456789") == 0) {
NewName.insert(0, 1, 'n');
}
Expand Down
4 changes: 2 additions & 2 deletions llvm/examples/Kaleidoscope/MCJIT/complete/toy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ static PrototypeAST *ParsePrototype() {
// Read the precedence if present.
if (CurTok == tok_number) {
if (NumVal < 1 || NumVal > 100)
return ErrorP("Invalid precedecnce: must be 1..100");
return ErrorP("Invalid precedence: must be 1..100");
BinaryPrecedence = (unsigned)NumVal;
getNextToken();
}
Expand Down Expand Up @@ -666,7 +666,7 @@ std::string MakeLegalFunctionName(std::string Name)
// Start with what we have
NewName = Name;

// Look for a numberic first character
// Look for a numeric first character
if (NewName.find_first_of("0123456789") == 0) {
NewName.insert(0, 1, 'n');
}
Expand Down
4 changes: 2 additions & 2 deletions llvm/examples/Kaleidoscope/MCJIT/initial/toy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ static PrototypeAST *ParsePrototype() {
// Read the precedence if present.
if (CurTok == tok_number) {
if (NumVal < 1 || NumVal > 100)
return ErrorP("Invalid precedecnce: must be 1..100");
return ErrorP("Invalid precedence: must be 1..100");
BinaryPrecedence = (unsigned)NumVal;
getNextToken();
}
Expand Down Expand Up @@ -624,7 +624,7 @@ std::string MakeLegalFunctionName(std::string Name)
// Start with what we have
NewName = Name;

// Look for a numberic first character
// Look for a numeric first character
if (NewName.find_first_of("0123456789") == 0) {
NewName.insert(0, 1, 'n');
}
Expand Down
2 changes: 1 addition & 1 deletion llvm/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static PrototypeAST *ParsePrototype() {
// Read the precedence if present.
if (CurTok == tok_number) {
if (NumVal < 1 || NumVal > 100)
return ErrorP("Invalid precedecnce: must be 1..100");
return ErrorP("Invalid precedence: must be 1..100");
BinaryPrecedence = (unsigned)NumVal;
getNextToken();
}
Expand Down
4 changes: 2 additions & 2 deletions llvm/examples/Kaleidoscope/MCJIT/lazy/toy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ static PrototypeAST *ParsePrototype() {
// Read the precedence if present.
if (CurTok == tok_number) {
if (NumVal < 1 || NumVal > 100)
return ErrorP("Invalid precedecnce: must be 1..100");
return ErrorP("Invalid precedence: must be 1..100");
BinaryPrecedence = (unsigned)NumVal;
getNextToken();
}
Expand Down Expand Up @@ -626,7 +626,7 @@ std::string MakeLegalFunctionName(std::string Name)
// Start with what we have
NewName = Name;

// Look for a numberic first character
// Look for a numeric first character
if (NewName.find_first_of("0123456789") == 0) {
NewName.insert(0, 1, 'n');
}
Expand Down
Loading