diff options
author | Eric Christopher <echristo@gmail.com> | 2014-12-08 18:12:28 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-12-08 18:12:28 +0000 |
commit | c02393604bc898100e4c2f2b8b01074f28c81432 (patch) | |
tree | 40ec24127b793bfa60dda5c911a88db73b701690 /llvm/examples/Kaleidoscope/Chapter8/toy.cpp | |
parent | 290ece827804d40e2e5e98832624d31434ef8e18 (diff) | |
download | bcm5719-llvm-c02393604bc898100e4c2f2b8b01074f28c81432.tar.gz bcm5719-llvm-c02393604bc898100e4c2f2b8b01074f28c81432.zip |
Fix KS tutorial build failure.
make all doesn't build the examples and it was uniquified since
last build.
llvm-svn: 223675
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter8/toy.cpp')
-rw-r--r-- | llvm/examples/Kaleidoscope/Chapter8/toy.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp index 814ca61ccd6..eaa07ee93f4 100644 --- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp @@ -1444,10 +1444,11 @@ int main() { // Create the JIT. This takes ownership of the module. std::string ErrStr; - TheExecutionEngine = EngineBuilder(std::move(Owner)) - .setErrorStr(&ErrStr) - .setMCJITMemoryManager(new SectionMemoryManager()) - .create(); + TheExecutionEngine = + EngineBuilder(std::move(Owner)) + .setErrorStr(&ErrStr) + .setMCJITMemoryManager(llvm::make_unique<SectionMemoryManager>()) + .create(); if (!TheExecutionEngine) { fprintf(stderr, "Could not create ExecutionEngine: %s\n", ErrStr.c_str()); exit(1); |