forked from OSchip/llvm-project
Fix Transforms/ScalarRepl/2006-04-20-PromoteCrash.ll
llvm-svn: 27912
This commit is contained in:
parent
c11f4f4214
commit
dae49df407
|
|
@ -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…
Reference in New Issue