Skip to content

Commit 0627c63

Browse files
committed
Remove polymorphize calls for statics in a couple more places
1 parent 6db2752 commit 0627c63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/global_asm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub(crate) fn codegen_global_asm_item(tcx: TyCtxt<'_>, global_asm: &mut String,
8181
);
8282
}
8383

84-
let instance = Instance::mono(tcx, def_id).polymorphize(tcx);
84+
let instance = Instance::mono(tcx, def_id);
8585
let symbol = tcx.symbol_name(instance);
8686
global_asm.push_str(symbol.name);
8787
}

Diff for: src/inline_asm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub(crate) fn codegen_inline_asm_terminator<'tcx>(
127127
}
128128
InlineAsmOperand::SymStatic { def_id } => {
129129
assert!(fx.tcx.is_static(def_id));
130-
let instance = Instance::mono(fx.tcx, def_id).polymorphize(fx.tcx);
130+
let instance = Instance::mono(fx.tcx, def_id);
131131
CInlineAsmOperand::Symbol { symbol: fx.tcx.symbol_name(instance).name.to_owned() }
132132
}
133133
InlineAsmOperand::Label { .. } => {

0 commit comments

Comments
 (0)