JVM_IR: Lower IrGetEnumValue to this whenever possible.

The reference can be lowered to `this` if it is captured in the lexical
scope of the corresponding enum entry, and not used by the enum entry's
super constructor. Otherwise, it is lowered to
`GETFIELD SomeEnum.SomeEntry`.
This commit is contained in:
Ting-Yuan Huang
2019-04-05 17:24:40 -07:00
committed by max-kammerer
parent faa6eacb25
commit 0dd09ea7de
20 changed files with 73 additions and 34 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
interface IFoo {
fun foo(): String
}