mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +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.
|
||||
bool IsNotTrivial = false;
|
||||
if (const Type *ActualType = CanConvertToScalar(AI, IsNotTrivial))
|
||||
if (IsNotTrivial) {
|
||||
if (IsNotTrivial && ActualType != Type::VoidTy) {
|
||||
ConvertToScalar(AI, ActualType);
|
||||
Changed = true;
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user