projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62b7c9c
)
Fix up the ExceptionDemo for some API changes over the past <time>
author
David Blaikie
<dblaikie@gmail.com>
Fri, 14 Aug 2015 00:24:56 +0000
(
00:24
+0000)
committer
David Blaikie
<dblaikie@gmail.com>
Fri, 14 Aug 2015 00:24:56 +0000
(
00:24
+0000)
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
examples/ExceptionDemo/ExceptionDemo.cpp
patch
|
blob
|
history
diff --git
a/examples/ExceptionDemo/ExceptionDemo.cpp
b/examples/ExceptionDemo/ExceptionDemo.cpp
index 81337c4823b04883a7748a412eb10ec7b7d1e76c..75140967fa8050d761a685fb4939417037c1404a 100644
(file)
--- a/
examples/ExceptionDemo/ExceptionDemo.cpp
+++ b/
examples/ExceptionDemo/ExceptionDemo.cpp
@@
-971,7
+971,7
@@
void generateIntegerPrint(llvm::LLVMContext &context,
llvm::Value *cast = builder.CreateBitCast(stringVar,
builder.getInt8PtrTy());
- builder.CreateCall
2(&printFunct, &toPrint, cast
);
+ builder.CreateCall
(&printFunct, {&toPrint, cast}
);
}
@@
-1973,7
+1973,7
@@
int main(int argc, char *argv[]) {
// 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