For PR950:
[oota-llvm.git] / examples / Fibonacci / fibonacci.cpp
index 6f775515fba263be92e5e740361e910c137040be..96aeb6340aa79730965c9dc08d68fb5acfa5cefe 100644 (file)
@@ -58,7 +58,7 @@ static Function *CreateFibFunction(Module *M) {
   BasicBlock* RecurseBB = new BasicBlock("recurse", FibF);
 
   // Create the "if (arg < 2) goto exitbb"
-  Value *CondInst = BinaryOperator::createSetLE(ArgX, Two, "cond", BB);
+  Value *CondInst = new ICmpInst(ICmpInst::ICMP_SLE, ArgX, Two, "cond", BB);
   new BranchInst(RetBB, RecurseBB, CondInst, BB);
 
   // Create: ret int 1