Add bogus conditional branch before stlx
[oota-llvm.git] / examples / Fibonacci / fibonacci.cpp
index bb364fda584f26e7610bf37bde101dd0a091af68..ecb49eb92e1ac9b3f41e7edd47d1f799c5cc0cd4 100644 (file)
@@ -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.