summaryrefslogtreecommitdiff
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-22 02:10:26 +0000
committerChris Lattner <sabre@nondot.org>2003-11-22 02:10:26 +0000
commit89eca9097dfdae6296d4f32b6b74e2362e5de686 (patch)
tree75f0678e2dc18857e25f31fd5bfc09e3f0a42fa7 /tools/bugpoint
parent142207b9eccb247ddecab5188338193ef04e5cb7 (diff)
downloadllvm-89eca9097dfdae6296d4f32b6b74e2362e5de686.tar.gz
llvm-89eca9097dfdae6296d4f32b6b74e2362e5de686.tar.bz2
llvm-89eca9097dfdae6296d4f32b6b74e2362e5de686.tar.xz
Use new interfaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/CodeGeneratorBug.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/bugpoint/CodeGeneratorBug.cpp b/tools/bugpoint/CodeGeneratorBug.cpp
index b24620ea14..0858f4ed0d 100644
--- a/tools/bugpoint/CodeGeneratorBug.cpp
+++ b/tools/bugpoint/CodeGeneratorBug.cpp
@@ -381,15 +381,11 @@ bool BugDriver::debugCodeGenerator() {
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);