Skip to content

Commit

Permalink
const_missing should not simplify to a call
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Oct 13, 2014
1 parent c307409 commit 0a70a39
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -44,6 +44,12 @@ public void updateResult(Variable v) {
this.result = v;
}

// we don't want to convert const_missing to an actual call
@Override
public CallBase specializeForInterpretation() {
return this;
}

@Override
public Instr clone(CloneInfo ii) {
return new ConstMissingInstr(ii.getRenamedVariable(result), receiver.cloneForInlining(ii), missingConst);
Expand Down

0 comments on commit 0a70a39

Please sign in to comment.