diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-05 00:42:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-05 00:42:29 +0000 |
commit | 8c292adba491f862eee24f8aed3ddec98c87409c (patch) | |
tree | f226b834c372083db6bf62edd0d99c9e3a4b0137 /llvm/tools/bugpoint/CrashDebugger.cpp | |
parent | 3ca391027f8656e8c936a305ae9921da6b03446b (diff) | |
download | llvm-8c292adba491f862eee24f8aed3ddec98c87409c.zip llvm-8c292adba491f862eee24f8aed3ddec98c87409c.tar.gz llvm-8c292adba491f862eee24f8aed3ddec98c87409c.tar.bz2 |
No need to special-case structs here; structs are first-class now.
llvm-svn: 105513
Diffstat (limited to 'llvm/tools/bugpoint/CrashDebugger.cpp')
-rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index 46b33d2..9c9ddde 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/tools/bugpoint/CrashDebugger.cpp @@ -298,9 +298,7 @@ bool ReduceCrashingBlocks::TestBlocks(std::vector<const BasicBlock*> &BBs) { TerminatorInst *BBTerm = BB->getTerminator(); - if (BBTerm->getType()->isStructTy()) - BBTerm->replaceAllUsesWith(UndefValue::get(BBTerm->getType())); - else if (BB->getTerminator()->getType() != + if (BB->getTerminator()->getType() != Type::getVoidTy(BB->getContext())) BBTerm->replaceAllUsesWith(Constant::getNullValue(BBTerm->getType())); |