Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 43fb415

Browse files
TimNNkripken
authored andcommitted
require re-running expansion after expanding to an array (#177)
1 parent 09aaa02 commit 43fb415

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Target/JSBackend/NaCl/ExpandStructRegs.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ char ExpandStructRegs::ID = 0;
6868
INITIALIZE_PASS(ExpandStructRegs, "expand-struct-regs",
6969
"Expand out variables with struct types", false, false)
7070

71-
static bool DoAnotherPass(Type *Ty) { return isa<StructType>(Ty); }
71+
static bool DoAnotherPass(Type *Ty) {
72+
return isa<StructType>(Ty) || isa<ArrayType>(Ty);
73+
}
7274
static bool DoAnotherPass(Value *V) { return DoAnotherPass(V->getType()); }
7375

7476
static bool SplitUpPHINode(PHINode *Phi) {

0 commit comments

Comments
 (0)