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
llvm::Value *cast = builder.CreateBitCast(stringVar,
builder.getInt8PtrTy());
llvm::Value *cast = builder.CreateBitCast(stringVar,
builder.getInt8PtrTy());
- builder.CreateCall2(&printFunct, &toPrint, cast);
+ builder.CreateCall(&printFunct, {&toPrint, cast});
// Set up the optimizer pipeline.
// Start with registering info about how the
// target lays out data structures.
// Set up the optimizer pipeline.
// Start with registering info about how the
// target lays out data structures.
- module->setDataLayout(*executionEngine->getDataLayout());
+ module->setDataLayout(executionEngine->getDataLayout());
// Optimizations turned on
#ifdef ADD_OPT_PASSES
// Optimizations turned on
#ifdef ADD_OPT_PASSES