X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FFibonacci%2Ffibonacci.cpp;h=ecb49eb92e1ac9b3f41e7edd47d1f799c5cc0cd4;hb=49c02eaad55b68f58d4abdbc22eb08b92a024437;hp=bb364fda584f26e7610bf37bde101dd0a091af68;hpb=0dbe803c9e4a36f4bc3a7087cb2d48cc1a01826c;p=oota-llvm.git diff --git a/examples/Fibonacci/fibonacci.cpp b/examples/Fibonacci/fibonacci.cpp index bb364fda584..ecb49eb92e1 100644 --- 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... - 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.