summaryrefslogtreecommitdiff
path: root/examples/Fibonacci/fibonacci.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-06 17:24:31 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-06 17:24:31 +0000
commit34bd70de3c344034b82dc9a964a6b6893efa3e82 (patch)
tree00112f6375966e97a242a73080101ae56f7d6286 /examples/Fibonacci/fibonacci.cpp
parenta5057d02c05efc0ead8787c76a012382ef675b03 (diff)
Adjust for changes in GenericValue type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Fibonacci/fibonacci.cpp')
-rw-r--r--examples/Fibonacci/fibonacci.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/Fibonacci/fibonacci.cpp b/examples/Fibonacci/fibonacci.cpp
index 53ec1b04d39..cd35417fb3e 100644
--- a/examples/Fibonacci/fibonacci.cpp
+++ b/examples/Fibonacci/fibonacci.cpp
@@ -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;
}