diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-04 19:15:29 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-04 19:15:29 +0000 |
| commit | 265ffbeb0c78ae49871571af2d4382f5a52c27e6 (patch) | |
| tree | be026765a36a71718d3e128b8574256119deeadd /llvm/examples/Kaleidoscope/Chapter4 | |
| parent | 77b1811fdea0341a25427beb12ddc48d75120673 (diff) | |
| download | bcm5719-llvm-265ffbeb0c78ae49871571af2d4382f5a52c27e6.tar.gz bcm5719-llvm-265ffbeb0c78ae49871571af2d4382f5a52c27e6.zip | |
Fix the build of the gold-plugin and examples.
llvm-svn: 231279
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter4')
| -rw-r--r-- | llvm/examples/Kaleidoscope/Chapter4/toy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter4/toy.cpp b/llvm/examples/Kaleidoscope/Chapter4/toy.cpp index 22e6856784f..329c3bed3eb 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. |

