mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
Patch for PR1045 and Transforms/ScalarRepl/2006-12-11-SROA-Crash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -433,6 +433,8 @@ static bool MergeInType(const Type *In, const Type *&Accum,
|
|||||||
const PackedType *PTy;
|
const PackedType *PTy;
|
||||||
if (Accum == Type::VoidTy || In == Accum) {
|
if (Accum == Type::VoidTy || In == Accum) {
|
||||||
Accum = In;
|
Accum = In;
|
||||||
|
} else if (In == Type::VoidTy) {
|
||||||
|
// Noop.
|
||||||
} else if (In->isIntegral() && Accum->isIntegral()) { // integer union.
|
} else if (In->isIntegral() && Accum->isIntegral()) { // integer union.
|
||||||
// Otherwise pick whichever type is larger.
|
// Otherwise pick whichever type is larger.
|
||||||
if (In->getTypeID() > Accum->getTypeID())
|
if (In->getTypeID() > Accum->getTypeID())
|
||||||
|
Reference in New Issue
Block a user