about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2019-11-27 15:28:45 -0600
committerGitHub <noreply@github.com>2019-11-27 15:28:45 -0600
commitb05f14cc40d4820bb53f2637aaab76a0c1415fe4 (patch)
treea73fe804382f843cbfa793bb97cc2dd84586c8f7 /src/test/debuginfo/enum-thinlto.rs
parenta3a8ee0636aa2f586241f87f76074c4abc49a77e (diff)
parente846ea1112ba3176d3141163c86dda5bfd8cd5eb (diff)
downloadrust-b05f14cc40d4820bb53f2637aaab76a0c1415fe4.tar.gz
rust-b05f14cc40d4820bb53f2637aaab76a0c1415fe4.zip
Rollup merge of #66761 - yuyoyuppe:rust_llvm_minor_fix, r=alexcrichton
Use LLVMDisposePassManager instead of raw delete in rustllvm

LLVM has a dedicated API call which wraps the destructor invocation for the PassManager.
Rust invokes it [otherwhere](https://github.com/rust-lang/rust/blob/d63b24ffcc48f44ef09e0369e6516d6f2dec3520/src/librustc_codegen_llvm/back/write.rs#L446-L447), but not in the `LLVMRustWriteOutputFile`.

Since `LLVMDisposePassManager` might be extended to perform additional cleanup actions in the future, this change replaces raw destructor invocation with that API call.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions