diff --git a/kotlin-native/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt b/kotlin-native/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt index ab2484556a5..c79ef922275 100644 --- a/kotlin-native/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt +++ b/kotlin-native/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt @@ -946,7 +946,7 @@ private fun createVfsOverlayFileContents(virtualPathToReal: Map): By } } - memScoped { + return memScoped { val bufferVar = alloc>().apply { value = null } val bufferSizeVar = alloc() @@ -956,7 +956,7 @@ private fun createVfsOverlayFileContents(virtualPathToReal: Map): By error(res) } - return bufferVar.value!!.readBytes(bufferSizeVar.value) + bufferVar.value!!.readBytes(bufferSizeVar.value) } } finally { clang_VirtualFileOverlay_dispose(overlay)