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/CrashDebugger.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/CrashDebugger.cpp')
-rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index 9c9dddedceb..67ceaa90e35 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/tools/bugpoint/CrashDebugger.cpp @@ -298,8 +298,7 @@ bool ReduceCrashingBlocks::TestBlocks(std::vector<const BasicBlock*> &BBs) { TerminatorInst *BBTerm = BB->getTerminator(); - if (BB->getTerminator()->getType() != - Type::getVoidTy(BB->getContext())) + if (!BB->getTerminator()->getType()->isVoidTy()) BBTerm->replaceAllUsesWith(Constant::getNullValue(BBTerm->getType())); // Replace the old terminator instruction. @@ -393,7 +392,7 @@ bool ReduceCrashingInstructions::TestInsts(std::vector<const Instruction*> for (BasicBlock::iterator I = FI->begin(), E = FI->end(); I != E;) { Instruction *Inst = I++; if (!Instructions.count(Inst) && !isa<TerminatorInst>(Inst)) { - if (Inst->getType() != Type::getVoidTy(Inst->getContext())) + if (!Inst->getType()->isVoidTy()) Inst->replaceAllUsesWith(UndefValue::get(Inst->getType())); Inst->eraseFromParent(); } |