Merging r258436:
[oota-llvm.git] / examples / HowToUseJIT / HowToUseJIT.cpp
index e5fca3fe98df1cfe78bb5335e231743dae41a7ce..e0bf6a00bf017d84c0d1dac409a0f77d9c03108d 100644 (file)
@@ -80,7 +80,7 @@ int main() {
 
   // Get pointers to the integer argument of the add1 function...
   assert(Add1F->arg_begin() != Add1F->arg_end()); // Make sure there's an arg
-  Argument *ArgX = Add1F->arg_begin();  // Get the arg
+  Argument *ArgX = &*Add1F->arg_begin();          // Get the arg
   ArgX->setName("AnArg");            // Give it a nice symbolic name for fun.
 
   // Create the add instruction, inserting it into the end of BB.