[K/N][IR][codegen] Use LazyIr for cached libraries
It's not that simple because we still need inline functions bodies and classes fields which aren't present in Lazy IR. To overcome this, save additional binary info for a cached library and then use it when needed
This commit is contained in:
+1
-1
@@ -182,7 +182,7 @@ class FunctionInlining(
|
||||
val statements = (copiedCallee.body as IrBlockBody).statements
|
||||
|
||||
val irReturnableBlockSymbol = IrReturnableBlockSymbolImpl()
|
||||
val endOffset = callee.endOffset
|
||||
val endOffset = statements.lastOrNull()?.endOffset ?: callee.endOffset
|
||||
/* creates irBuilder appending to the end of the given returnable block: thus why we initialize
|
||||
* irBuilder with (..., endOffset, endOffset).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user