Skip to content

Commit 511baad

Browse files
committed
---
yaml --- r: 2416 b: refs/heads/master c: a71fda4 h: refs/heads/master v: v3
1 parent 47f048c commit 511baad

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: ca1b1666e09af0f56b8c8ff2fc31d022b44ca90c
2+
refs/heads/master: a71fda40b865e23f0d191174f4584298534f2f75

trunk/src/comp/back/Link.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ tag output_type {
1919
}
2020

2121
fn llvm_err(session.session sess, str msg) {
22-
sess.err(msg + ": " + Str.str_from_cstr(llvm.LLVMRustGetLastError()));
22+
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+
}
2328
fail;
2429
}
2530

0 commit comments

Comments
 (0)