Skip to content

Commit d84cfac

Browse files
committed
---
yaml --- r: 2884 b: refs/heads/master c: a6ca9c2 h: refs/heads/master v: v3
1 parent b44aa63 commit d84cfac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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: 30efdeeca1bd0d60412fdb9e88eba6336ffcacea
2+
refs/heads/master: a6ca9c2922ac8b7dd9ca9b09db1bde5dbaf38102

trunk/src/comp/middle/metadata.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,11 +716,11 @@ fn encode_metadata(&@trans::crate_ctxt cx, &@ast::crate crate)
716716
}
717717

718718
fn write_metadata(&@trans::crate_ctxt cx, &@ast::crate crate) {
719-
auto llmeta = C_postr("");
720-
if (cx.sess.get_opts().shared) {
721-
llmeta = encode_metadata(cx, crate);
719+
if (!cx.sess.get_opts().shared) {
720+
ret;
722721
}
723722

723+
auto llmeta = encode_metadata(cx, crate);
724724
auto llconst = trans::C_struct([llmeta]);
725725
auto llglobal = llvm::LLVMAddGlobal(cx.llmod, trans::val_ty(llconst),
726726
str::buf("rust_metadata"));

0 commit comments

Comments
 (0)