[llvm-commits] CVS: llvm/tools/bugpoint/CodeGeneratorBug.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Nov 21 20:12:02 PST 2003


Changes in directory llvm/tools/bugpoint:

CodeGeneratorBug.cpp updated: 1.32 -> 1.33

---
Log message:

Use new interfaces


---
Diffs of the changes:  (+2 -6)

Index: llvm/tools/bugpoint/CodeGeneratorBug.cpp
diff -u llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.32 llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.33
--- llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.32	Tue Nov 11 16:41:34 2003
+++ llvm/tools/bugpoint/CodeGeneratorBug.cpp	Fri Nov 21 20:10:26 2003
@@ -381,15 +381,11 @@
     BB->getInstList().push_back(call);
     
     // if the type of old function wasn't void, return value of call
-    ReturnInst *ret;
     if (oldMain->getReturnType() != Type::VoidTy) {
-      ret = new ReturnInst(call);
+      new ReturnInst(call, BB);
     } else {
-      ret = new ReturnInst();
+      new ReturnInst(0, BB);
     }
-
-    // Add the return instruction to the BasicBlock
-    BB->getInstList().push_back(ret);
   }
 
   DisambiguateGlobalSymbols(Program);





More information about the llvm-commits mailing list