From 731361f2e9ee9d5b0ba1a0274b5da11746490a20 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Sat, 22 Oct 2016 09:36:23 +0300 Subject: [PATCH] added comment that thereis required check about shadowing --- .../org/jetbrains/kotlin/backend/native/llvm/CodeGenerator.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/native/llvm/CodeGenerator.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/native/llvm/CodeGenerator.kt index 4ab97d07459..58a074e290c 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/native/llvm/CodeGenerator.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/native/llvm/CodeGenerator.kt @@ -49,6 +49,9 @@ internal class CodeGenerator(override val context:Context) : ContextUtils { function(declaration) val thisPtr = bitcast(pointerType(classType(declaration.descriptor.containingDeclaration)), load(thisVariable(), tmpVariable()), tmpVariable()) + /** + * TODO: check shadowing. + */ declaration.descriptor.containingDeclaration.fields.forEachIndexed { i, descriptor -> val name = descriptor.name.asString()