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

Commit

Permalink
require re-running expansion after expanding to an array (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimNN authored and kripken committed Apr 7, 2017
1 parent 09aaa02 commit 43fb415
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Target/JSBackend/NaCl/ExpandStructRegs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ char ExpandStructRegs::ID = 0;
INITIALIZE_PASS(ExpandStructRegs, "expand-struct-regs",
"Expand out variables with struct types", false, false)

static bool DoAnotherPass(Type *Ty) { return isa<StructType>(Ty); }
static bool DoAnotherPass(Type *Ty) {
return isa<StructType>(Ty) || isa<ArrayType>(Ty);
}
static bool DoAnotherPass(Value *V) { return DoAnotherPass(V->getType()); }

static bool SplitUpPHINode(PHINode *Phi) {
Expand Down

0 comments on commit 43fb415

Please sign in to comment.