mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Fix: don't crash when local functions happen to share the name of a function with a special JVM name
This commit is contained in:
@@ -97,7 +97,7 @@ open class KotlinUsesExtractor(
|
||||
fun getSpecialJvmName(f: IrFunction): String? {
|
||||
if (specialFunctionShortNames.contains(f.name) && f is IrSimpleFunction) {
|
||||
f.allOverridden(true).forEach { overriddenFunc ->
|
||||
overriddenFunc.parentAsClass.fqNameWhenAvailable?.let { parentFqName ->
|
||||
overriddenFunc.parentClassOrNull?.fqNameWhenAvailable?.let { parentFqName ->
|
||||
specialFunctions[MethodKey(parentFqName, f.name)]?.let {
|
||||
return it
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user