diff options
| author | bors <bors@rust-lang.org> | 2023-07-17 02:56:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-17 02:56:10 +0000 |
| commit | 299179e69457125e77be1489531bca0b9ee1af48 (patch) | |
| tree | ac3c7683fbfcaeb0c13b77c5088edf6abdd7d8d0 /compiler/rustc_codegen_llvm | |
| parent | 4c7af429f3122cbde3df648783e9b4d31cd62525 (diff) | |
| parent | 005a70e3034eb84798760d3ccbf46eda65b40075 (diff) | |
| download | rust-299179e69457125e77be1489531bca0b9ee1af48.tar.gz rust-299179e69457125e77be1489531bca0b9ee1af48.zip | |
Auto merge of #113772 - nnethercote:streamline-size-estimates-2, r=wesleywiser
Streamline size estimates (take 2) This was merged in #113684 but then [something happened](https://github.com/rust-lang/rust/pull/113684#issuecomment-1636811985): > There has been a bors issue that lead to the merge commit of this PR getting purged from master. > You'll have to make a new PR to reapply it. So this is exactly the same changes. `@bors` r=wesleywiser
Diffstat (limited to 'compiler/rustc_codegen_llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/base.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/base.rs b/compiler/rustc_codegen_llvm/src/base.rs index 5b2bbdb4bde..5b5f81c0329 100644 --- a/compiler/rustc_codegen_llvm/src/base.rs +++ b/compiler/rustc_codegen_llvm/src/base.rs @@ -86,8 +86,8 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol) -> (ModuleCodegen { let cx = CodegenCx::new(tcx, cgu, &llvm_module); let mono_items = cx.codegen_unit.items_in_deterministic_order(cx.tcx); - for &(mono_item, (linkage, visibility)) in &mono_items { - mono_item.predefine::<Builder<'_, '_, '_>>(&cx, linkage, visibility); + for &(mono_item, data) in &mono_items { + mono_item.predefine::<Builder<'_, '_, '_>>(&cx, data.linkage, data.visibility); } // ... and now that we have everything pre-defined, fill out those definitions. |
