Skip to content

Commit

Permalink
Fix bug with unboxed refs
Browse files Browse the repository at this point in the history
  • Loading branch information
titzer committed May 4, 2024
1 parent d91bf69 commit af34d4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion aeneas/src/ir/VariantSolver.v3
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def getScalarFromSet(s: Scalar.set) -> Scalar {
return Scalar.B32; // should be unreachable
}
def getTypeFromScalarSet(s: Scalar.set, usePacking: bool) -> Type {
for (i in s) return if(usePacking, IntRep.getType(i), i.ty);
for (i in s) match (i) {
R32, R64, Ref => return AnyRef.TYPE;
_ => return if(usePacking, IntRep.getType(i), i.ty);
}
return null;
}

Expand Down
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.1717";
def version: string = "III-7.1718";
var buildData: string;
}

0 comments on commit af34d4e

Please sign in to comment.