We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc59cd commit 9e2bd87Copy full SHA for 9e2bd87
Sources/LLVM/Module.swift
@@ -110,7 +110,8 @@ public final class Module: CustomStringConvertible {
110
/// The identifier of this module.
111
public var name: String {
112
get {
113
- guard let id = LLVMGetModuleIdentifier(llvm, nil) else { return "" }
+ var count = 0
114
+ guard let id = LLVMGetModuleIdentifier(llvm, &count) else { return "" }
115
return String(cString: id)
116
}
117
set {
0 commit comments