This started as a small change, I swear. Unfortunately, lots of things call the...
[oota-llvm.git] / examples / Fibonacci / fibonacci.cpp
index c3431fc3527e0340c283c2da807779f9f3b2472d..89f3ef2d753d2c6bf984724e67b5e86ff880f31c 100644 (file)
@@ -60,7 +60,7 @@ static Function *CreateFibFunction(Module *M) {
   BasicBlock* RecurseBB = BasicBlock::Create("recurse", FibF);
 
   // Create the "if (arg <= 2) goto exitbb"
-  Value *CondInst = new ICmpInst(ICmpInst::ICMP_SLE, ArgX, Two, "cond", BB);
+  Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond");
   BranchInst::Create(RetBB, RecurseBB, CondInst, BB);
 
   // Create: ret int 1