diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2019-11-27 15:28:45 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-27 15:28:45 -0600 |
| commit | b05f14cc40d4820bb53f2637aaab76a0c1415fe4 (patch) | |
| tree | a73fe804382f843cbfa793bb97cc2dd84586c8f7 /src/test/debuginfo/enum-thinlto.rs | |
| parent | a3a8ee0636aa2f586241f87f76074c4abc49a77e (diff) | |
| parent | e846ea1112ba3176d3141163c86dda5bfd8cd5eb (diff) | |
| download | rust-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
