Disposed target data
(cherry picked from commit 250be87acf66d5c780fb593f46da3540a536e049)
This commit is contained in:
committed by
TeamCityServer
parent
ba50a8275c
commit
c5249ac714
+3
-1
@@ -338,8 +338,10 @@ internal class Context(config: KonanConfig) : KonanBackendContext(config) {
|
|||||||
LLVMDisposeDIBuilder(debugInfo.builder)
|
LLVMDisposeDIBuilder(debugInfo.builder)
|
||||||
if (llvmModule != null)
|
if (llvmModule != null)
|
||||||
LLVMDisposeModule(llvmModule)
|
LLVMDisposeModule(llvmModule)
|
||||||
if (::llvm.isInitialized)
|
if (::llvm.isInitialized) {
|
||||||
|
LLVMDisposeTargetData(llvm.runtime.targetData)
|
||||||
LLVMDisposeModule(llvm.runtime.llvmModule)
|
LLVMDisposeModule(llvm.runtime.llvmModule)
|
||||||
|
}
|
||||||
tryDisposeLLVMContext()
|
tryDisposeLLVMContext()
|
||||||
llvmDisposed = true
|
llvmDisposed = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user