Skip to content

Commit 804a5e3

Browse files
committed
Fix child execution codegen for GenerateSlowPathOnly
1 parent bbf5620 commit 804a5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/bytecode/generator/BytecodeDSLNodeGeneratorPlugs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private boolean buildOperandExecution(CodeTreeBuilder b, FrameState frameState,
234234
}
235235

236236
final ImplicitCastData cast;
237-
if (model.isBoxingEliminated(instructionType) && !ElementUtils.typeEquals(instructionType, targetType)) {
237+
if (model.isBoxingEliminated(instructionType) && !ElementUtils.typeEquals(instructionType, targetType) && !ElementUtils.isObject(targetType)) {
238238
cast = instruction.nodeData.getTypeSystem().lookupCast(instructionType, targetType);
239239
if (cast == null) {
240240
throw new AssertionError("Instruction type must match the declared type unless for implicit casts: " + instruction + ": " + instructionType + " -> " + targetType);

0 commit comments

Comments
 (0)