IR: make call symbols mutable

This will help in some lowerings which need to change the callee of a
call. Instead of creating a new call and copying everything (type
arguments, value arguments, receivers, annotations, attributes, ...),
it's easier to modify the `symbol`. In a way, this is a continuation of
22b4b29292.
This commit is contained in:
Alexander Udalov
2023-06-15 17:44:46 +02:00
committed by Space Team
parent 3744192806
commit 978553c513
28 changed files with 44 additions and 39 deletions
@@ -881,7 +881,7 @@ class FunctionInlining(
}
private class IrGetValueWithoutLocation(
override val symbol: IrValueSymbol,
override var symbol: IrValueSymbol,
override var origin: IrStatementOrigin? = null
) : IrGetValue() {
override val startOffset: Int get() = UNDEFINED_OFFSET