Skip to content

Commit

Permalink
[Native] Always cache a lowered function inside inline fun resolver
Browse files Browse the repository at this point in the history
#KT-67220
  • Loading branch information
ivandev0 authored and qodana-bot committed Oct 16, 2024
1 parent 9d3e850 commit 9e0d238
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ internal class NativeInlineFunctionResolver(

if (shouldLower) {
lower(function, functionIsCached)
if (!functionIsCached) {
function.getOrSaveLoweredInlineFunction()
}
}
return function

return function.getOrSaveLoweredInlineFunction()
}

private fun lower(function: IrFunction, functionIsCached: Boolean) {
Expand Down

0 comments on commit 9e0d238

Please sign in to comment.