diff options
| author | yuyoyuppe <a.yuyoyuppe@gmail.com> | 2019-11-25 23:44:26 +0300 |
|---|---|---|
| committer | yuyoyuppe <a.yuyoyuppe@gmail.com> | 2019-11-25 23:52:10 +0300 |
| commit | e846ea1112ba3176d3141163c86dda5bfd8cd5eb (patch) | |
| tree | 6c319be69011acaa6f8ef8931b5fdc3b85a2ab76 /src/rustllvm/PassWrapper.cpp | |
| parent | 91642e3ac0120c8e9cdd5f3c85ad03f3bf1b8b69 (diff) | |
| download | rust-e846ea1112ba3176d3141163c86dda5bfd8cd5eb.tar.gz rust-e846ea1112ba3176d3141163c86dda5bfd8cd5eb.zip | |
Use LLVMDisposePassManager instead of raw delete in rustllvm
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
| -rw-r--r-- | src/rustllvm/PassWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp index 3451346869d..3e53856a85d 100644 --- a/src/rustllvm/PassWrapper.cpp +++ b/src/rustllvm/PassWrapper.cpp @@ -537,7 +537,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target, LLVMPassManagerRef PMR, // Apparently `addPassesToEmitFile` adds a pointer to our on-the-stack output // stream (OS), so the only real safe place to delete this is here? Don't we // wish this was written in Rust? - delete PM; + LLVMDisposePassManager(PMR); return LLVMRustResult::Success; } |
