From cd253dae12b64316c72a14d702f8e0f2fdafd82b Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 16 Jul 2015 16:47:18 +0000 Subject: Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref From: Mehdi Amini llvm-svn: 242416 --- llvm/examples/Kaleidoscope/Chapter4/toy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/examples/Kaleidoscope/Chapter4/toy.cpp') diff --git a/llvm/examples/Kaleidoscope/Chapter4/toy.cpp b/llvm/examples/Kaleidoscope/Chapter4/toy.cpp index ad091e4496b..db59e265d2e 100644 --- a/llvm/examples/Kaleidoscope/Chapter4/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter4/toy.cpp @@ -560,7 +560,7 @@ void *MCJITHelper::getPointerToFunction(Function *F) { // Set up the optimizer pipeline. Start with registering info about how the // target lays out data structures. - OpenModule->setDataLayout(*NewEngine->getDataLayout()); + OpenModule->setDataLayout(NewEngine->getDataLayout()); // Provide basic AliasAnalysis support for GVN. FPM->add(createBasicAliasAnalysisPass()); // Promote allocas to registers. -- cgit v1.2.3