Skip to content

Commit 9e2bd87

Browse files
committed
Fix #170
1 parent bfc59cd commit 9e2bd87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/LLVM/Module.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ public final class Module: CustomStringConvertible {
110110
/// The identifier of this module.
111111
public var name: String {
112112
get {
113-
guard let id = LLVMGetModuleIdentifier(llvm, nil) else { return "" }
113+
var count = 0
114+
guard let id = LLVMGetModuleIdentifier(llvm, &count) else { return "" }
114115
return String(cString: id)
115116
}
116117
set {

0 commit comments

Comments
 (0)