diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h index 130310da9274..de169804b06f 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h @@ -120,7 +120,7 @@ public: if (!RT) RT = MainJD.getDefaultResourceTracker(); - return OptimizeLayer.add(RT, std::move(TSM)); + return CODLayer.add(RT, std::move(TSM)); } Expected lookup(StringRef Name) {