For PR950:
[oota-llvm.git] / examples / Fibonacci / fibonacci.cpp
index cdc84ca2122317ee6e8192ff4904421c2ed32b48..6f775515fba263be92e5e740361e910c137040be 100644 (file)
@@ -45,8 +45,8 @@ static Function *CreateFibFunction(Module *M) {
   BasicBlock *BB = new BasicBlock("EntryBlock", FibF);
 
   // Get pointers to the constants.
-  Value *One = ConstantSInt::get(Type::IntTy, 1);
-  Value *Two = ConstantSInt::get(Type::IntTy, 2);
+  Value *One = ConstantInt::get(Type::IntTy, 1);
+  Value *Two = ConstantInt::get(Type::IntTy, 2);
 
   // Get pointer to the integer argument of the add1 function...
   Argument *ArgX = FibF->arg_begin();   // Get the arg.