Adjust for changes in GenericValue type.
[oota-llvm.git] / examples / Fibonacci / fibonacci.cpp
index 53ec1b04d399e11ce71201fa459f8ba7b80a231c..cd35417fb3e8270d1da55aa867f620b161a7fe8b 100644 (file)
@@ -112,10 +112,10 @@ int main(int argc, char **argv) {
 
   // Call the Fibonacci function with argument n:
   std::vector<GenericValue> Args(1);
-  Args[0].Int32Val = n;
+  Args[0].IntVal = APInt(32, n);
   GenericValue GV = EE->runFunction(FibF, Args);
 
   // import result of execution
-  std::cout << "Result: " << GV.Int32Val << "\n";
+  std::cout << "Result: " << GV.IntVal.toString(10) << "\n";
   return 0;
 }