JVM: Generate LVT entry for this in @JvmOverload methods.
This change also makes sure that no line numbers are generated in the wrappers in the JVM_IR backend. Change-Id: If6c37f8a20894455abddb526039df059e02015a3
This commit is contained in:
+2
-2
@@ -115,7 +115,7 @@ private class JvmOverloadsAnnotationLowering(val context: JvmBackendContext) : C
|
||||
is IrConstructor -> {
|
||||
val descriptor = WrappedClassConstructorDescriptor(oldFunction.descriptor.annotations)
|
||||
IrConstructorImpl(
|
||||
oldFunction.startOffset, oldFunction.endOffset,
|
||||
UNDEFINED_OFFSET, UNDEFINED_OFFSET,
|
||||
JvmLoweredDeclarationOrigin.JVM_OVERLOADS_WRAPPER,
|
||||
IrConstructorSymbolImpl(descriptor),
|
||||
oldFunction.name,
|
||||
@@ -131,7 +131,7 @@ private class JvmOverloadsAnnotationLowering(val context: JvmBackendContext) : C
|
||||
is IrSimpleFunction -> {
|
||||
val descriptor = WrappedSimpleFunctionDescriptor(oldFunction.descriptor.annotations)
|
||||
IrFunctionImpl(
|
||||
oldFunction.startOffset, oldFunction.endOffset,
|
||||
UNDEFINED_OFFSET, UNDEFINED_OFFSET,
|
||||
JvmLoweredDeclarationOrigin.JVM_OVERLOADS_WRAPPER,
|
||||
IrSimpleFunctionSymbolImpl(descriptor),
|
||||
oldFunction.name,
|
||||
|
||||
Reference in New Issue
Block a user