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:
+3
@@ -183,6 +183,9 @@ private fun mustNotInline(context: Context, irFunction: IrFunction): Boolean {
|
|||||||
// To simplify skipping this constructor when scanning call stack in Kotlin_getCurrentStackTrace.
|
// To simplify skipping this constructor when scanning call stack in Kotlin_getCurrentStackTrace.
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if (irFunction.symbol == context.ir.symbols.entryPoint) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user