For PR950:
[oota-llvm.git] / examples / ParallelJIT / ParallelJIT.cpp
index dfda1263786aadb3569a532b1268fadce2ee796a..7f2e1bfc10b77fde6e5a9575f663737cb37872c8 100644 (file)
@@ -83,7 +83,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