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.
2 parents b876a1b + e83bbc9 commit 7c14d64Copy full SHA for 7c14d64
Sources/LLVM/JIT.swift
@@ -265,7 +265,7 @@ public final class JIT {
265
266
switch LLVMGetErrorTypeId(err)! {
267
case LLVMGetStringErrorTypeId():
268
- guard let msg = LLVMGetErrorMessage(self.llvm) else {
+ guard let msg = LLVMGetErrorMessage(err) else {
269
fatalError("Couldn't get the error message?")
270
}
271
throw JITError.generic(String(cString: msg))
0 commit comments