[codegen][debug-info] paramter's index begins with 1.
This commit is contained in:
+1
-1
@@ -1261,7 +1261,7 @@ internal class CodeGeneratorVisitor(val context: Context, val lifetimes: Map<IrE
|
|||||||
functionScope = locationInfo.scope,
|
functionScope = locationInfo.scope,
|
||||||
diType = element.descriptor.type.diType(context, codegen.llvmTargetData),
|
diType = element.descriptor.type.diType(context, codegen.llvmTargetData),
|
||||||
name = element.descriptor.name,
|
name = element.descriptor.name,
|
||||||
argNo = if (element.isValueParameter) element.index else 0,
|
argNo = element.index + 1,
|
||||||
file = file,
|
file = file,
|
||||||
line = locationInfo.line,
|
line = locationInfo.line,
|
||||||
location = location)
|
location = location)
|
||||||
|
|||||||
Reference in New Issue
Block a user