X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FKaleidoscope%2FChapter8%2Ftoy.cpp;h=39b6a6541504a1fbf56dc1095e4e88997297596f;hb=671944ff8fc9ca8206964d51586a2f541a441262;hp=3a582e9d1c2fc8eab6dc10465c6f0524459d0555;hpb=b34736c630f2a37fefe8d93a06bc5095053ad7e8;p=oota-llvm.git diff --git a/examples/Kaleidoscope/Chapter8/toy.cpp b/examples/Kaleidoscope/Chapter8/toy.cpp index 3a582e9d1c2..39b6a654150 100644 --- a/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/examples/Kaleidoscope/Chapter8/toy.cpp @@ -1459,7 +1459,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()); #if 0 // Provide basic AliasAnalysis support for GVN. OurFPM.add(createBasicAliasAnalysisPass());