File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed
llvm/examples/Kaleidoscope/MCJIT Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ static PrototypeAST *ParsePrototype() {
564564 // Read the precedence if present.
565565 if (CurTok == tok_number) {
566566 if (NumVal < 1 || NumVal > 100 )
567- return ErrorP (" Invalid precedecnce : must be 1..100" );
567+ return ErrorP (" Invalid precedence : must be 1..100" );
568568 BinaryPrecedence = (unsigned )NumVal;
569569 getNextToken ();
570570 }
@@ -670,7 +670,7 @@ Value *BinaryExprAST::Codegen() {
670670 if (Op == ' =' ) {
671671 // Assignment requires the LHS to be an identifier.
672672 // For now, I'm building without RTTI because LLVM builds that way by
673- // default and so we need to build that way to use the command line supprt .
673+ // default and so we need to build that way to use the command line support .
674674 // If you build LLVM with RTTI this can be changed back to a dynamic_cast.
675675 VariableExprAST *LHSE = static_cast <VariableExprAST*>(LHS);
676676 if (!LHSE)
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ static PrototypeAST *ParsePrototype() {
571571 // Read the precedence if present.
572572 if (CurTok == tok_number) {
573573 if (NumVal < 1 || NumVal > 100 )
574- return ErrorP (" Invalid precedecnce : must be 1..100" );
574+ return ErrorP (" Invalid precedence : must be 1..100" );
575575 BinaryPrecedence = (unsigned )NumVal;
576576 getNextToken ();
577577 }
@@ -647,7 +647,7 @@ std::string MakeLegalFunctionName(std::string Name)
647647 // Start with what we have
648648 NewName = Name;
649649
650- // Look for a numberic first character
650+ // Look for a numeric first character
651651 if (NewName.find_first_of (" 0123456789" ) == 0 ) {
652652 NewName.insert (0 , 1 , ' n' );
653653 }
Original file line number Diff line number Diff line change @@ -590,7 +590,7 @@ static PrototypeAST *ParsePrototype() {
590590 // Read the precedence if present.
591591 if (CurTok == tok_number) {
592592 if (NumVal < 1 || NumVal > 100 )
593- return ErrorP (" Invalid precedecnce : must be 1..100" );
593+ return ErrorP (" Invalid precedence : must be 1..100" );
594594 BinaryPrecedence = (unsigned )NumVal;
595595 getNextToken ();
596596 }
@@ -666,7 +666,7 @@ std::string MakeLegalFunctionName(std::string Name)
666666 // Start with what we have
667667 NewName = Name;
668668
669- // Look for a numberic first character
669+ // Look for a numeric first character
670670 if (NewName.find_first_of (" 0123456789" ) == 0 ) {
671671 NewName.insert (0 , 1 , ' n' );
672672 }
Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ static PrototypeAST *ParsePrototype() {
548548 // Read the precedence if present.
549549 if (CurTok == tok_number) {
550550 if (NumVal < 1 || NumVal > 100 )
551- return ErrorP (" Invalid precedecnce : must be 1..100" );
551+ return ErrorP (" Invalid precedence : must be 1..100" );
552552 BinaryPrecedence = (unsigned )NumVal;
553553 getNextToken ();
554554 }
@@ -624,7 +624,7 @@ std::string MakeLegalFunctionName(std::string Name)
624624 // Start with what we have
625625 NewName = Name;
626626
627- // Look for a numberic first character
627+ // Look for a numeric first character
628628 if (NewName.find_first_of (" 0123456789" ) == 0 ) {
629629 NewName.insert (0 , 1 , ' n' );
630630 }
Original file line number Diff line number Diff line change @@ -549,7 +549,7 @@ static PrototypeAST *ParsePrototype() {
549549 // Read the precedence if present.
550550 if (CurTok == tok_number) {
551551 if (NumVal < 1 || NumVal > 100 )
552- return ErrorP (" Invalid precedecnce : must be 1..100" );
552+ return ErrorP (" Invalid precedence : must be 1..100" );
553553 BinaryPrecedence = (unsigned )NumVal;
554554 getNextToken ();
555555 }
Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ static PrototypeAST *ParsePrototype() {
550550 // Read the precedence if present.
551551 if (CurTok == tok_number) {
552552 if (NumVal < 1 || NumVal > 100 )
553- return ErrorP (" Invalid precedecnce : must be 1..100" );
553+ return ErrorP (" Invalid precedence : must be 1..100" );
554554 BinaryPrecedence = (unsigned )NumVal;
555555 getNextToken ();
556556 }
@@ -626,7 +626,7 @@ std::string MakeLegalFunctionName(std::string Name)
626626 // Start with what we have
627627 NewName = Name;
628628
629- // Look for a numberic first character
629+ // Look for a numeric first character
630630 if (NewName.find_first_of (" 0123456789" ) == 0 ) {
631631 NewName.insert (0 , 1 , ' n' );
632632 }
You can’t perform that action at this time.
0 commit comments