forked from OSchip/llvm-project
No need to special-case structs here; structs are first-class now.
llvm-svn: 105513
This commit is contained in:
parent
3ca391027f
commit
8c292adba4
|
@ -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()));
|
||||
|
||||
|
|
Loading…
Reference in New Issue