Skip to content

Commit 7fdece7

Browse files
mcpiromanSpace Team
authored andcommitted
[IR] Use standard copy mechanism in originalBeforeInline
It effectively behaves the same as before, but should be a bit cleaner.
1 parent 6aff1f6 commit 7fdece7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/ir/ir.tree/gen/org/jetbrains/kotlin/ir/CommonIrAttributes.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ package org.jetbrains.kotlin.ir
1212
*
1313
* `null` <=> `this` element wasn't inlined.
1414
*/
15-
var IrElement.originalBeforeInline: IrElement? by irAttribute(copyByDefault = false)
15+
var IrElement.originalBeforeInline: IrElement? by irAttribute(copyByDefault = true)

compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/IrDeclarations.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import java.io.File
2121
fun IrElement.copyAttributes(other: IrElement, includeAll: Boolean = false) {
2222
(this as IrElementBase).copyAttributesFrom(other as IrElementBase, includeAll)
2323
attributeOwnerId = other.attributeOwnerId
24-
originalBeforeInline = other.originalBeforeInline
2524
}
2625

2726
val IrClass.isSingleFieldValueClass: Boolean

0 commit comments

Comments
 (0)