about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-05-12 18:20:01 +0200
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-05-12 18:20:14 +0200
commit0627c63ad9a11bda958fab1c4bef7dc2eda9f000 (patch)
tree2324139c55687cebf6e8cd434e30a8d4158c6499
parent6db27529ddbb6d94e0c990e527aa8341c3d85a79 (diff)
downloadrust-0627c63ad9a11bda958fab1c4bef7dc2eda9f000.tar.gz
rust-0627c63ad9a11bda958fab1c4bef7dc2eda9f000.zip
Remove polymorphize calls for statics in a couple more places
-rw-r--r--src/global_asm.rs2
-rw-r--r--src/inline_asm.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/global_asm.rs b/src/global_asm.rs
index 5a0cd3990f2..0c99a5ce12f 100644
--- a/src/global_asm.rs
+++ b/src/global_asm.rs
@@ -81,7 +81,7 @@ pub(crate) fn codegen_global_asm_item(tcx: TyCtxt<'_>, global_asm: &mut String,
                                 );
                             }
 
-                            let instance = Instance::mono(tcx, def_id).polymorphize(tcx);
+                            let instance = Instance::mono(tcx, def_id);
                             let symbol = tcx.symbol_name(instance);
                             global_asm.push_str(symbol.name);
                         }
diff --git a/src/inline_asm.rs b/src/inline_asm.rs
index 28b92f730da..f2299e933bb 100644
--- a/src/inline_asm.rs
+++ b/src/inline_asm.rs
@@ -127,7 +127,7 @@ pub(crate) fn codegen_inline_asm_terminator<'tcx>(
             }
             InlineAsmOperand::SymStatic { def_id } => {
                 assert!(fx.tcx.is_static(def_id));
-                let instance = Instance::mono(fx.tcx, def_id).polymorphize(fx.tcx);
+                let instance = Instance::mono(fx.tcx, def_id);
                 CInlineAsmOperand::Symbol { symbol: fx.tcx.symbol_name(instance).name.to_owned() }
             }
             InlineAsmOperand::Label { .. } => {