[examples][BuildingAJIT] Use the right layer when adding code in Chapter 3.

We were incorrectly using the OptimizeLayer and bypassing the COD layer.
This commit is contained in:
Lang Hames 2022-03-01 16:43:39 -08:00
parent 34e539dcd7
commit 1e16272ba7
1 changed files with 1 additions and 1 deletions

View File

@ -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<JITEvaluatedSymbol> lookup(StringRef Name) {