diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-07 20:19:26 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-07 20:19:26 +0000 |
commit | 34a2249fde1ba2b48921079e39e82461ede25106 (patch) | |
tree | 8e3b6bf479ac10b55388a74faa042525b773ffec /llvm/tools/bugpoint/ExtractFunction.cpp | |
parent | a2d7c34e93ad7e33af3e9a9052b7530f697fbc67 (diff) | |
download | bcm5719-llvm-34a2249fde1ba2b48921079e39e82461ede25106.tar.gz bcm5719-llvm-34a2249fde1ba2b48921079e39e82461ede25106.zip |
Use ->isVoidTy().
llvm-svn: 105550
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExtractFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index e6a98d945a3..82f78745464 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/tools/bugpoint/ExtractFunction.cpp @@ -73,7 +73,7 @@ Module *BugDriver::deleteInstructionFromProgram(const Instruction *I, Instruction *TheInst = RI; // Got the corresponding instruction! // If this instruction produces a value, replace any users with null values - if (TheInst->getType() != Type::getVoidTy(I->getContext())) + if (!TheInst->getType()->isVoidTy()) TheInst->replaceAllUsesWith(Constant::getNullValue(TheInst->getType())); // Remove the instruction from the program. |