Don't use kind for static check

Lowers should perform proper transformations
This commit is contained in:
Mikhael Bogdanov
2017-06-22 14:02:53 +02:00
parent 3432014971
commit 4711e2f9da
@@ -53,8 +53,7 @@ class FunctionCodegen(private val irFunction: IrFunction, private val classCodeg
private fun doGenerate() {
val signature = classCodegen.typeMapper.mapSignatureWithGeneric(descriptor, OwnerKind.IMPLEMENTATION)
val isStatic = isStaticMethod(OwnerKind.getMemberOwnerKind(classCodegen.descriptor), descriptor) ||
DescriptorUtils.isStaticDeclaration(descriptor)
val isStatic = DescriptorUtils.isStaticDeclaration(descriptor)
val frameMap = createFrameMapWithReceivers(classCodegen.state, descriptor, signature, isStatic)