Skip to content

Commit 8d47190

Browse files
committed
auto merge of #11262 : alexcrichton/rust/issue-11259, r=pcwalton
Closes #11259
2 parents b9c39c6 + dd33b14 commit 8d47190

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/librustc/lib/llvm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ impl ObjectFile {
19371937
unsafe {
19381938
let llof = llvm::LLVMCreateObjectFile(llmb);
19391939
if llof as int == 0 {
1940-
llvm::LLVMDisposeMemoryBuffer(llmb);
1940+
// LLVMCreateObjectFile took ownership of llmb
19411941
return None
19421942
}
19431943

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-include ../tools.mk
2+
3+
all:
4+
$(RUSTC) foo.rs
5+
$(RUSTC) --ls $(TMPDIR)/foo
6+
touch $(TMPDIR)/bar
7+
$(RUSTC) --ls $(TMPDIR)/bar

src/test/run-make/ls-metadata/foo.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fn main() {}

0 commit comments

Comments
 (0)