mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-11 15:26:07 +00:00
No need to special-case structs here; structs are first-class now.
llvm-svn: 105513
This commit is contained in:
parent
37ed2a9663
commit
a4614e30ec
@ -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…
x
Reference in New Issue
Block a user