Skip to content

Commit 011adfc

Browse files
lhameszmodem
authored andcommitted
Update clang-interpreter example to incorporate changes in ce2207a.
(cherry picked from commit b54aa05)
1 parent 46f6f03 commit 011adfc

File tree

1 file changed

+2
-1
lines changed
  • clang/examples/clang-interpreter

1 file changed

+2
-1
lines changed

clang/examples/clang-interpreter/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class SimpleJIT {
5656
MangleAndInterner Mangle{ES, DL};
5757
JITDylib &MainJD{ES.createJITDylib("<main>")};
5858
RTDyldObjectLinkingLayer ObjectLayer{ES, createMemMgr};
59-
IRCompileLayer CompileLayer{ES, ObjectLayer, SimpleCompiler(*TM)};
59+
IRCompileLayer CompileLayer{ES, ObjectLayer,
60+
std::make_unique<SimpleCompiler>(*TM)};
6061

6162
static std::unique_ptr<SectionMemoryManager> createMemMgr() {
6263
return std::make_unique<SectionMemoryManager>();

0 commit comments

Comments
 (0)