summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/Chapter5/toy.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-07-16 16:47:18 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-07-16 16:47:18 +0000
commitcd253dae12b64316c72a14d702f8e0f2fdafd82b (patch)
treed91962868ba916f37e5710d079fc25a9036cb20d /llvm/examples/Kaleidoscope/Chapter5/toy.cpp
parentf26ff282dfd0916497e25ff9984b4ac9ca62f622 (diff)
downloadbcm5719-llvm-cd253dae12b64316c72a14d702f8e0f2fdafd82b.tar.gz
bcm5719-llvm-cd253dae12b64316c72a14d702f8e0f2fdafd82b.zip
Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 242416
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter5/toy.cpp')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter5/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter5/toy.cpp b/llvm/examples/Kaleidoscope/Chapter5/toy.cpp
index db990489573..08d0b77e708 100644
--- a/llvm/examples/Kaleidoscope/Chapter5/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter5/toy.cpp
@@ -913,7 +913,7 @@ int main() {
// Set up the optimizer pipeline. Start with registering info about how the
// target lays out data structures.
- TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
+ TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
// Provide basic AliasAnalysis support for GVN.
OurFPM.add(createBasicAliasAnalysisPass());
// Do simple "peephole" optimizations and bit-twiddling optzns.
OpenPOWER on IntegriCloud