Get rid of redundant intrinsic
Also drop 'safe' parameter from TypeIntrinsics.checkcast, because it's supposed to work as JVM checkcast (i.e. accepting nulls)
This commit is contained in:
@@ -361,12 +361,4 @@ public class TypeIntrinsics {
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
public static Object beforeSafeCheckcastToFunctionOfArity(Object obj, int arity) {
|
||||
// TODO should we instead inline bytecode for this in TypeIntrinsics.kt?
|
||||
if (obj == null || !isFunctionOfArity(obj, arity)) {
|
||||
return null;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user