Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix broken check (on java8, but okay on java7).
  • Loading branch information
subbuss committed Oct 6, 2014
1 parent 94f3f38 commit e09f484
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -112,7 +112,7 @@ public Object execute(IRScope s, Object... data) {
// Make sure flags are computed
s.computeScopeFlags();

if (!s.getFlags().contains(IRFlags.REQUIRES_DYNSCOPE) && (data.length == 0 || data[0] == false)) {
if (!s.getFlags().contains(IRFlags.REQUIRES_DYNSCOPE) && (data.length == 0 || data[0] != Boolean.TRUE)) {
eliminateLocalVars(s);
} else {
Map<Operand, Operand> varRenameMap = new HashMap<Operand, Operand>();
Expand Down Expand Up @@ -145,7 +145,7 @@ public Object execute(IRScope s, Object... data) {
//
// In the current implementation, nested scopes are processed independently (unlike Live Variable Analysis)
// However, since this pass requires LVA information, in reality, we cannot run
for (IRClosure c: s.getClosures()) execute(c, true);
for (IRClosure c: s.getClosures()) execute(c, Boolean.TRUE);
}

s.setDataFlowSolution(StoreLocalVarPlacementProblem.NAME, slvp);
Expand Down

0 comments on commit e09f484

Please sign in to comment.