Skip to content

Commit df1f42d

Browse files
committed
Fix locationForType(boolean.class) to use a type assumption
1 parent 286d4e0 commit df1f42d

File tree

1 file changed

+1
-1
lines changed
  • truffle/src/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object

1 file changed

+1
-1
lines changed

truffle/src/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/ExtAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public Location locationForType(Class<?> type) {
380380
} else if (type == long.class) {
381381
return newLongLocation();
382382
} else if (type == boolean.class) {
383-
return newObjectLocation();
383+
return locationForValue(true);
384384
} else if (type != null && type != Object.class) {
385385
assert !type.isPrimitive() : "unsupported primitive type";
386386
return newTypedObjectLocation(type, false, false, null, NO_VALUE);

0 commit comments

Comments
 (0)