Index: examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp =================================================================== --- examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp +++ examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp @@ -1092,7 +1092,7 @@ TheFunction->eraseFromParent(); if (P.isBinaryOp()) - BinopPrecedence.erase(Proto->getOperatorName()); + BinopPrecedence.erase(P.getOperatorName()); return nullptr; } Index: examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp =================================================================== --- examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp +++ examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp @@ -1092,7 +1092,7 @@ TheFunction->eraseFromParent(); if (P.isBinaryOp()) - BinopPrecedence.erase(Proto->getOperatorName()); + BinopPrecedence.erase(P.getOperatorName()); return nullptr; } Index: examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp =================================================================== --- examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp +++ examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp @@ -1092,7 +1092,7 @@ TheFunction->eraseFromParent(); if (P.isBinaryOp()) - BinopPrecedence.erase(Proto->getOperatorName()); + BinopPrecedence.erase(P.getOperatorName()); return nullptr; } Index: examples/Kaleidoscope/Chapter6/toy.cpp =================================================================== --- examples/Kaleidoscope/Chapter6/toy.cpp +++ examples/Kaleidoscope/Chapter6/toy.cpp @@ -932,7 +932,7 @@ TheFunction->eraseFromParent(); if (P.isBinaryOp()) - BinopPrecedence.erase(Proto->getOperatorName()); + BinopPrecedence.erase(P.getOperatorName()); return nullptr; } Index: examples/Kaleidoscope/Chapter7/toy.cpp =================================================================== --- examples/Kaleidoscope/Chapter7/toy.cpp +++ examples/Kaleidoscope/Chapter7/toy.cpp @@ -1099,7 +1099,7 @@ TheFunction->eraseFromParent(); if (P.isBinaryOp()) - BinopPrecedence.erase(Proto->getOperatorName()); + BinopPrecedence.erase(P.getOperatorName()); return nullptr; } Index: examples/Kaleidoscope/Chapter8/toy.cpp =================================================================== --- examples/Kaleidoscope/Chapter8/toy.cpp +++ examples/Kaleidoscope/Chapter8/toy.cpp @@ -1097,7 +1097,7 @@ TheFunction->eraseFromParent(); if (P.isBinaryOp()) - BinopPrecedence.erase(Proto->getOperatorName()); + BinopPrecedence.erase(P.getOperatorName()); return nullptr; }