[K/N][codegen] Bug fix in debug info generator
This commit is contained in:
+1
@@ -619,6 +619,7 @@ internal class Llvm(val context: Context, val llvmModule: LLVMModuleRef) : Runti
|
||||
}
|
||||
}
|
||||
|
||||
val llvmInt1 = int1Type
|
||||
val llvmInt8 = int8Type
|
||||
val llvmInt16 = int16Type
|
||||
val llvmInt32 = int32Type
|
||||
|
||||
+1
@@ -223,6 +223,7 @@ internal fun IrType.alignment(context:Context) = context.debugInfo.llvmTypeAlign
|
||||
|
||||
internal fun IrType.llvmType(context:Context): LLVMTypeRef = context.debugInfo.llvmTypes.getOrElse(this) {
|
||||
when(computePrimitiveBinaryTypeOrNull()) {
|
||||
PrimitiveBinaryType.BOOLEAN -> context.llvm.llvmInt1
|
||||
PrimitiveBinaryType.BYTE -> context.llvm.llvmInt8
|
||||
PrimitiveBinaryType.SHORT -> context.llvm.llvmInt16
|
||||
PrimitiveBinaryType.INT -> context.llvm.llvmInt32
|
||||
|
||||
Reference in New Issue
Block a user