llvm.org GIT mirror llvm / 00c293b
Fix up the ExceptionDemo for some API changes over the past <time> This still doesn't build -Werror clean, but other than that it should at least build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244994 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
970970
971971 llvm::Value *cast = builder.CreateBitCast(stringVar,
972972 builder.getInt8PtrTy());
973 builder.CreateCall2(&printFunct, &toPrint, cast);
973 builder.CreateCall(&printFunct, {&toPrint, cast});
974974 }
975975
976976
19721972 // Set up the optimizer pipeline.
19731973 // Start with registering info about how the
19741974 // target lays out data structures.
1975 module->setDataLayout(*executionEngine->getDataLayout());
1975 module->setDataLayout(executionEngine->getDataLayout());
19761976
19771977 // Optimizations turned on
19781978 #ifdef ADD_OPT_PASSES