Transform native compiler source code to be compiled by K2 bootstrap.
Merge-request: KT-MR-8720 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
22fd7921fe
commit
c86f3d1103
+2
-2
@@ -946,7 +946,7 @@ private fun createVfsOverlayFileContents(virtualPathToReal: Map<Path, Path>): By
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
memScoped {
|
return memScoped {
|
||||||
val bufferVar = alloc<CPointerVar<ByteVar>>().apply { value = null }
|
val bufferVar = alloc<CPointerVar<ByteVar>>().apply { value = null }
|
||||||
val bufferSizeVar = alloc<IntVar>()
|
val bufferSizeVar = alloc<IntVar>()
|
||||||
|
|
||||||
@@ -956,7 +956,7 @@ private fun createVfsOverlayFileContents(virtualPathToReal: Map<Path, Path>): By
|
|||||||
error(res)
|
error(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
return bufferVar.value!!.readBytes(bufferSizeVar.value)
|
bufferVar.value!!.readBytes(bufferSizeVar.value)
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
clang_VirtualFileOverlay_dispose(overlay)
|
clang_VirtualFileOverlay_dispose(overlay)
|
||||||
|
|||||||
Reference in New Issue
Block a user