Skip to content

Commit

Permalink
Fix SsaOptimizer case for CallFunction of constant that is not a FuncVal
Browse files Browse the repository at this point in the history
  • Loading branch information
titzer committed Dec 17, 2024
1 parent 4531320 commit 8b8287c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aeneas/src/main/Version.v3
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

// Updated by VCS scripts. DO NOT EDIT.
component Version {
def version: string = "III-7.1777";
def version: string = "III-7.1778";
var buildData: string;
}
2 changes: 1 addition & 1 deletion aeneas/src/ssa/SsaOptimizer.v3
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ class SsaInstrReducer(context: SsaContext) extends SsaInstrMatcher {
if (SsaThrow.?(target)) return target;
state.kill();
var xval = unop(i);
if (xconst) {
if (xconst && FuncVal.?(xval)) {
var d = FuncVal.!(xval);
if (d == null) return addThrow(i.source, V3Exception.NullCheck);
// CallFunction(#K) => CallMethod
Expand Down

0 comments on commit 8b8287c

Please sign in to comment.