Put noinline LLVM attribute to main function

Merge-request: KT-MR-6830
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2022-08-09 14:08:48 +00:00
committed by Space
parent b507975812
commit 8acf04cf23
@@ -183,6 +183,9 @@ private fun mustNotInline(context: Context, irFunction: IrFunction): Boolean {
// To simplify skipping this constructor when scanning call stack in Kotlin_getCurrentStackTrace.
return true
}
if (irFunction.symbol == context.ir.symbols.entryPoint) {
return true
}
}
return false