Skip to content

Commit d8a0179

Browse files
committed
ensure source position for new instance node is tracked
1 parent c157cec commit d8a0179

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/java/NewInstanceNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public void virtualize(VirtualizerTool tool) {
8888
}
8989
tool.createVirtualObject(virtualObject, state, Collections.<MonitorIdNode> emptyList(), false);
9090
tool.replaceWithVirtual(virtualObject);
91+
/* Track the original source node position across the substitution. */
92+
virtualObject.setNodeSourcePosition(getNodeSourcePosition());
9193
}
9294
}
9395
}

0 commit comments

Comments
 (0)