391458c355
Porting https://github.com/jetbrains/kotlin-native/pull/4536 which got lost in https://jetbrains.team/p/kt/code/kotlin/revision/c85c3ac1235bea8a469694f887febc6ee4979181