diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-09 21:22:00 +0000 | 
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-09 21:22:00 +0000 | 
| commit | 0a619dbc5d824da503e3ada6d4f36319b9ba2ce9 (patch) | |
| tree | 9ec5d0854aea3952200fd587fa1ab62f3779aeb0 /compiler/rustc_codegen_llvm/src | |
| parent | cb44c0c8b66e9033c77db69bc10443e20d8adc0b (diff) | |
| download | rust-0a619dbc5d824da503e3ada6d4f36319b9ba2ce9.tar.gz rust-0a619dbc5d824da503e3ada6d4f36319b9ba2ce9.zip | |
Pass owned CodegenResults to link_binary
After link_binary the temporary files referenced by CodegenResults are deleted, so calling link_binary again with the same CodegenResults should not be allowed.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/lib.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs index 49e616b5371..3dfb86d422d 100644 --- a/compiler/rustc_codegen_llvm/src/lib.rs +++ b/compiler/rustc_codegen_llvm/src/lib.rs @@ -382,7 +382,7 @@ impl CodegenBackend for LlvmCodegenBackend { // Run the linker on any artifacts that resulted from the LLVM run. // This should produce either a finished executable or library. - link_binary(sess, &LlvmArchiveBuilderBuilder, &codegen_results, outputs) + link_binary(sess, &LlvmArchiveBuilderBuilder, codegen_results, outputs) } } | 
