forked from OSchip/llvm-project
Patch for PR1045 and Transforms/ScalarRepl/2006-12-11-SROA-Crash.ll
llvm-svn: 32468
This commit is contained in:
parent
f65ce046db
commit
6e5fe376ec
|
@ -433,6 +433,8 @@ static bool MergeInType(const Type *In, const Type *&Accum,
|
|||
const PackedType *PTy;
|
||||
if (Accum == Type::VoidTy || In == Accum) {
|
||||
Accum = In;
|
||||
} else if (In == Type::VoidTy) {
|
||||
// Noop.
|
||||
} else if (In->isIntegral() && Accum->isIntegral()) { // integer union.
|
||||
// Otherwise pick whichever type is larger.
|
||||
if (In->getTypeID() > Accum->getTypeID())
|
||||
|
|
Loading…
Reference in New Issue