Adjust for changes in GenericValue type.
[oota-llvm.git] / examples / ParallelJIT / ParallelJIT.cpp
index f92055830d42366d807c232a750d21e51b644599..31cadc34f1222e0e0a68ec4370c3a7e264c860fb 100644 (file)
@@ -221,12 +221,12 @@ void* callFunc( void* param )
 
   // Call the `foo' function with no arguments:
   std::vector<GenericValue> Args(1);
-  Args[0].Int32Val = p->value;
+  Args[0].IntVal = APInt(32, p->value);
 
   synchronize.block(); // wait until other threads are at this point
   GenericValue gv = p->EE->runFunction(p->F, Args);
 
-  return (void*) intptr_t(gv.Int32Val);
+  return (void*)(intptr_t)gv.IntVal.getZExtValue();
 }
 
 int main()