diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/RTTIGenerator.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/RTTIGenerator.kt index c966152f508..bd6c266ead9 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/RTTIGenerator.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/RTTIGenerator.kt @@ -101,7 +101,10 @@ internal class RTTIGenerator(override val context: Context) : ContextUtils { extendedInfo, - Int32(KotlinAbiVersion.CURRENT.version), + // TODO: it used to be a single int32 ABI version, + // but klib abi version is not an int anymore. + // So now this field is just reserved to preserve the layout. + Int32(0), Int32(size), diff --git a/runtime/src/main/cpp/TypeInfo.h b/runtime/src/main/cpp/TypeInfo.h index 80dd2ed99f2..2bbb698e6b1 100644 --- a/runtime/src/main/cpp/TypeInfo.h +++ b/runtime/src/main/cpp/TypeInfo.h @@ -103,8 +103,8 @@ struct TypeInfo { const TypeInfo* typeInfo_; // Extended RTTI, to retain cross-version debuggability, since ABI version 5 shall always be at the second position. const ExtendedTypeInfo* extendedInfo_; - // ABI version. - uint32_t abiVersion_; + // Unused field. + uint32_t unused_; // Negative value marks array class/string, and it is negated element size. int32_t instanceSize_; // Must be pointer to Any for array classes, and null for Any.