[codegen][debug info] wrong usage of DW_OP_plus with const fixed

This commit is contained in:
Vasily Levchenko
2017-11-10 14:33:10 +03:00
committed by Vasily Levchenko
parent 1c16fc1166
commit e2d2ed5237
@@ -562,7 +562,7 @@ internal class FunctionGenerationContext(val function: LLVMValueRef,
addPhiIncoming(slotsPhi!!, prologueBb to slots)
memScoped {
slotToVariableLocation.forEach { slot, variable ->
val expr = longArrayOf(DwarfOp.DW_OP_plus.value,
val expr = longArrayOf(DwarfOp.DW_OP_plus_uconst.value,
runtime.pointerSize * slot.toLong()).toCValues()
DIInsertDeclaration(
builder = codegen.context.debugInfo.builder,