Skip to content

Commit

Permalink
compiler: proper error message then BytecodeExceptionNode cannot be l…
Browse files Browse the repository at this point in the history
…owered to a runtime call
  • Loading branch information
zapster committed Jul 5, 2021
1 parent d3edaf0 commit b5bece4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,11 @@ private void lowerBytecodeExceptionNode(BytecodeExceptionNode node) {
return;
}

ForeignCallDescriptor descriptor = foreignCalls.getDescriptor(RuntimeCalls.runtimeCalls.get(node.getExceptionKind()));
ForeignCallSignature signature = RuntimeCalls.runtimeCalls.get(node.getExceptionKind());
if (signature == null) {
throw new GraalError("No runtime call available to lower BytecodeExceptionKind " + node.getExceptionKind());
}
ForeignCallDescriptor descriptor = foreignCalls.getDescriptor(signature);
StructuredGraph graph = node.graph();
List<ValueNode> arguments = node.getArguments();

Expand Down

0 comments on commit b5bece4

Please sign in to comment.