about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/base.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-12-12 19:52:38 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-04-14 09:38:03 +0000
commite2e96fa14eeab1092e1f239ec8cc648781bd68c6 (patch)
tree73afa623b370e6ac258a0007ab7487bc7f46c389 /compiler/rustc_codegen_llvm/src/base.rs
parenta73eba99f7811fb0aec548ccf382ae7a2c77135f (diff)
downloadrust-e2e96fa14eeab1092e1f239ec8cc648781bd68c6.tar.gz
rust-e2e96fa14eeab1092e1f239ec8cc648781bd68c6.zip
Pass MonoItemData to MonoItem::define
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/base.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/base.rs4
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 6bd27914dbd..4b2f6fe52a3 100644
--- a/compiler/rustc_codegen_llvm/src/base.rs
+++ b/compiler/rustc_codegen_llvm/src/base.rs
@@ -90,8 +90,8 @@ pub(crate) fn compile_codegen_unit(
             }
 
             // ... and now that we have everything pre-defined, fill out those definitions.
-            for &(mono_item, _) in &mono_items {
-                mono_item.define::<Builder<'_, '_, '_>>(&cx);
+            for &(mono_item, item_data) in &mono_items {
+                mono_item.define::<Builder<'_, '_, '_>>(&cx, item_data);
             }
 
             // If this codegen unit contains the main function, also create the