Skip to content

Commit 635366c

Browse files
Don't dispose target data
We don't ever create it using LLVMCreateTargetData, so it gets double-freed after being destructed as part of the module's destructor.
1 parent b3b0337 commit 635366c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/LLVM/TargetData.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ public class TargetData {
153153
return Int(LLVMPointerSize(llvm))
154154
}
155155
}
156-
157-
deinit {
158-
LLVMDisposeTargetData(llvm)
159-
}
160156
}
161157

162158
/// `ByteOrder` enumerates the ordering semantics of sequences of bytes on a

0 commit comments

Comments
 (0)