mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 13:42:24 +00:00
Fix Transforms/ScalarRepl/2006-04-20-PromoteCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bcce6c2a0f
commit
df4f226cdc
@ -143,7 +143,7 @@ bool SROA::performScalarRepl(Function &F) {
|
|||||||
// simple scalar value that can be mem2reg'd into a register value.
|
// simple scalar value that can be mem2reg'd into a register value.
|
||||||
bool IsNotTrivial = false;
|
bool IsNotTrivial = false;
|
||||||
if (const Type *ActualType = CanConvertToScalar(AI, IsNotTrivial))
|
if (const Type *ActualType = CanConvertToScalar(AI, IsNotTrivial))
|
||||||
if (IsNotTrivial) {
|
if (IsNotTrivial && ActualType != Type::VoidTy) {
|
||||||
ConvertToScalar(AI, ActualType);
|
ConvertToScalar(AI, ActualType);
|
||||||
Changed = true;
|
Changed = true;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user