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 47f048c commit 511baadCopy full SHA for 511baad
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: ca1b1666e09af0f56b8c8ff2fc31d022b44ca90c
+refs/heads/master: a71fda40b865e23f0d191174f4584298534f2f75
trunk/src/comp/back/Link.rs
@@ -19,7 +19,12 @@ tag output_type {
19
}
20
21
fn llvm_err(session.session sess, str msg) {
22
- sess.err(msg + ": " + Str.str_from_cstr(llvm.LLVMRustGetLastError()));
+ auto buf = llvm.LLVMRustGetLastError();
23
+ if ((buf as uint) == 0u) {
24
+ sess.err(msg);
25
+ } else {
26
+ sess.err(msg + ": " + Str.str_from_cstr(buf));
27
+ }
28
fail;
29
30
0 commit comments