auto merge of #11262 : alexcrichton/rust/issue-11259, r=pcwalton

Closes #11259
This commit is contained in:
bors 2014-01-03 05:46:47 -08:00
commit 8d4719047b
3 changed files with 9 additions and 1 deletions

View File

@ -1937,7 +1937,7 @@ impl ObjectFile {
unsafe {
let llof = llvm::LLVMCreateObjectFile(llmb);
if llof as int == 0 {
llvm::LLVMDisposeMemoryBuffer(llmb);
// LLVMCreateObjectFile took ownership of llmb
return None
}

View File

@ -0,0 +1,7 @@
-include ../tools.mk
all:
$(RUSTC) foo.rs
$(RUSTC) --ls $(TMPDIR)/foo
touch $(TMPDIR)/bar
$(RUSTC) --ls $(TMPDIR)/bar

View File

@ -0,0 +1 @@
fn main() {}