diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-22 02:10:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-22 02:10:26 +0000 |
commit | 1e6089c2d6490f990e45a607226ecf62313ce26f (patch) | |
tree | 1ef6f501ee502314276306f6ad413a3be3104e7a /llvm/tools/bugpoint/CodeGeneratorBug.cpp | |
parent | 74d4df83cda6a572f39e56581b2a98c5197bcc79 (diff) | |
download | bcm5719-llvm-1e6089c2d6490f990e45a607226ecf62313ce26f.tar.gz bcm5719-llvm-1e6089c2d6490f990e45a607226ecf62313ce26f.zip |
Use new interfaces
llvm-svn: 10159
Diffstat (limited to 'llvm/tools/bugpoint/CodeGeneratorBug.cpp')
-rw-r--r-- | llvm/tools/bugpoint/CodeGeneratorBug.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/tools/bugpoint/CodeGeneratorBug.cpp b/llvm/tools/bugpoint/CodeGeneratorBug.cpp index b24620ea140..0858f4ed0d7 100644 --- a/llvm/tools/bugpoint/CodeGeneratorBug.cpp +++ b/llvm/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); |