summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExtractFunction.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-07 20:19:26 +0000
committerDan Gohman <gohman@apple.com>2010-06-07 20:19:26 +0000
commit34a2249fde1ba2b48921079e39e82461ede25106 (patch)
tree8e3b6bf479ac10b55388a74faa042525b773ffec /llvm/tools/bugpoint/ExtractFunction.cpp
parenta2d7c34e93ad7e33af3e9a9052b7530f697fbc67 (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud