[codegen][debug info] wrong usage of DW_OP_plus with const fixed
This commit is contained in:
committed by
Vasily Levchenko
parent
1c16fc1166
commit
e2d2ed5237
+1
-1
@@ -562,7 +562,7 @@ internal class FunctionGenerationContext(val function: LLVMValueRef,
|
|||||||
addPhiIncoming(slotsPhi!!, prologueBb to slots)
|
addPhiIncoming(slotsPhi!!, prologueBb to slots)
|
||||||
memScoped {
|
memScoped {
|
||||||
slotToVariableLocation.forEach { slot, variable ->
|
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()
|
runtime.pointerSize * slot.toLong()).toCValues()
|
||||||
DIInsertDeclaration(
|
DIInsertDeclaration(
|
||||||
builder = codegen.context.debugInfo.builder,
|
builder = codegen.context.debugInfo.builder,
|
||||||
|
|||||||
Reference in New Issue
Block a user