mirror of https://github.com/rust-lang/rust.git
auto merge of #11262 : alexcrichton/rust/issue-11259, r=pcwalton
Closes #11259
This commit is contained in:
commit
8d4719047b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
-include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs
|
||||
$(RUSTC) --ls $(TMPDIR)/foo
|
||||
touch $(TMPDIR)/bar
|
||||
$(RUSTC) --ls $(TMPDIR)/bar
|
|
@ -0,0 +1 @@
|
|||
fn main() {}
|
Loading…
Reference in New Issue