implements PR-05.5
This commit is contained in:
+5
@@ -77,10 +77,15 @@ public record IRReservedMetadata(
|
||||
String sourceMethodName,
|
||||
String canonicalName,
|
||||
long canonicalVersion,
|
||||
int argSlots,
|
||||
int retSlots,
|
||||
Span span) {
|
||||
public IntrinsicSurface {
|
||||
sourceMethodName = Objects.requireNonNull(sourceMethodName, "sourceMethodName");
|
||||
canonicalName = Objects.requireNonNull(canonicalName, "canonicalName");
|
||||
if (argSlots < 0 || retSlots < 0) {
|
||||
throw new IllegalArgumentException("intrinsic slot counts must be non-negative");
|
||||
}
|
||||
span = Objects.requireNonNull(span, "span");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user