Skip to content

Commit eeebdb9

Browse files
authored
[llvm] Fix Typo in Kaleidoscope BuildingAJIT Example (llvm#134391)
Changed "precedecnce" to precedence.
1 parent 3382aef commit eeebdb9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ static std::unique_ptr<PrototypeAST> ParsePrototype() {
636636
// Read the precedence if present.
637637
if (CurTok == tok_number) {
638638
if (NumVal < 1 || NumVal > 100)
639-
return LogErrorP("Invalid precedecnce: must be 1..100");
639+
return LogErrorP("Invalid precedence: must be 1..100");
640640
BinaryPrecedence = (unsigned)NumVal;
641641
getNextToken();
642642
}

llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ static std::unique_ptr<PrototypeAST> ParsePrototype() {
636636
// Read the precedence if present.
637637
if (CurTok == tok_number) {
638638
if (NumVal < 1 || NumVal > 100)
639-
return LogErrorP("Invalid precedecnce: must be 1..100");
639+
return LogErrorP("Invalid precedence: must be 1..100");
640640
BinaryPrecedence = (unsigned)NumVal;
641641
getNextToken();
642642
}

llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ static std::unique_ptr<PrototypeAST> ParsePrototype() {
636636
// Read the precedence if present.
637637
if (CurTok == tok_number) {
638638
if (NumVal < 1 || NumVal > 100)
639-
return LogErrorP("Invalid precedecnce: must be 1..100");
639+
return LogErrorP("Invalid precedence: must be 1..100");
640640
BinaryPrecedence = (unsigned)NumVal;
641641
getNextToken();
642642
}

llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ static std::unique_ptr<PrototypeAST> ParsePrototype() {
619619
// Read the precedence if present.
620620
if (CurTok == tok_number) {
621621
if (NumVal < 1 || NumVal > 100)
622-
return LogErrorP("Invalid precedecnce: must be 1..100");
622+
return LogErrorP("Invalid precedence: must be 1..100");
623623
BinaryPrecedence = (unsigned)NumVal;
624624
getNextToken();
625625
}

0 commit comments

Comments
 (0)