[codegen][debug] opt build fix
This commit is contained in:
committed by
vvlevchenko
parent
399f4bd0ff
commit
974426d70d
+1
@@ -1208,6 +1208,7 @@ internal class CodeGeneratorVisitor(val context: Context) : IrElementVisitorVoid
|
||||
val srcArg = evaluateExpression(value.argument) // Evaluate src expression.
|
||||
val srcObjInfoPtr = codegen.bitcast(codegen.kObjHeaderPtr, srcArg) // Cast src to ObjInfoPtr.
|
||||
val args = listOf(srcObjInfoPtr, dstTypeInfo) // Create arg list.
|
||||
debugLocation(value)
|
||||
call(context.llvm.checkInstanceFunction, args) // Check if dst is subclass of src.
|
||||
return srcArg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user