IC mangling: Use '_' instead of 'x' as a placeholder before hashing

This commit is contained in:
Ilmir Usmanov
2020-11-11 08:55:28 +01:00
parent f7164404c9
commit 488d4ab018
14 changed files with 44 additions and 40 deletions
@@ -17,6 +17,8 @@ import org.jetbrains.kotlin.types.typeUtil.representativeUpperBound
import java.security.MessageDigest
import java.util.*
const val NOT_INLINE_CLASS_PARAMETER_PLACEHOLDER = "_"
fun getManglingSuffixBasedOnKotlinSignature(
descriptor: CallableMemberDescriptor,
shouldMangleByReturnType: Boolean,
@@ -96,7 +98,7 @@ private fun getSignatureElementForMangling(type: KotlinType, useOldManglingRules
if (type.isMarkedNullable) append('?')
append(';')
} else {
append('x')
append(NOT_INLINE_CLASS_PARAMETER_PLACEHOLDER)
}
is TypeParameterDescriptor -> {