projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Taints the non-acquire RMW's store address with the load part
[oota-llvm.git]
/
examples
/
Fibonacci
/
fibonacci.cpp
diff --git
a/examples/Fibonacci/fibonacci.cpp
b/examples/Fibonacci/fibonacci.cpp
index bb364fda584f26e7610bf37bde101dd0a091af68..ecb49eb92e1ac9b3f41e7edd47d1f799c5cc0cd4 100644
(file)
--- a/
examples/Fibonacci/fibonacci.cpp
+++ b/
examples/Fibonacci/fibonacci.cpp
@@
-52,7
+52,7
@@
static Function *CreateFibFunction(Module *M, LLVMContext &Context) {
Value *Two = ConstantInt::get(Type::getInt32Ty(Context), 2);
// Get pointer to the integer argument of the add1 function...
Value *Two = ConstantInt::get(Type::getInt32Ty(Context), 2);
// Get pointer to the integer argument of the add1 function...
- Argument *ArgX =
FibF->arg_begin();
// Get the arg.
+ Argument *ArgX =
&*FibF->arg_begin();
// Get the arg.
ArgX->setName("AnArg"); // Give it a nice symbolic name for fun.
// Create the true_block.
ArgX->setName("AnArg"); // Give it a nice symbolic name for fun.
// Create the true_block.