diff options
| author | Ralf Jung <post@ralfj.de> | 2024-07-02 21:05:22 +0200 | 
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-07-02 21:05:30 +0200 | 
| commit | 41b98da42d0500e38b9dd85c82110ba177ac4de1 (patch) | |
| tree | 715c5787c45f093f51c827775a67240ff8f82727 /compiler/rustc_codegen_llvm/src/common.rs | |
| parent | 7d97c59438e933e86f557ed999da3b8dfc6855a7 (diff) | |
| download | rust-41b98da42d0500e38b9dd85c82110ba177ac4de1.tar.gz rust-41b98da42d0500e38b9dd85c82110ba177ac4de1.zip | |
Miri function identity hack: account for possible inlining
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/common.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compiler/rustc_codegen_llvm/src/common.rs b/compiler/rustc_codegen_llvm/src/common.rs index d42c6ed827a..fe64649cf70 100644 --- a/compiler/rustc_codegen_llvm/src/common.rs +++ b/compiler/rustc_codegen_llvm/src/common.rs @@ -289,8 +289,8 @@ impl<'ll, 'tcx> ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> { (value, AddressSpace::DATA) } } - GlobalAlloc::Function(fn_instance) => ( - self.get_fn_addr(fn_instance.polymorphize(self.tcx)), + GlobalAlloc::Function { instance, .. } => ( + self.get_fn_addr(instance.polymorphize(self.tcx)), self.data_layout().instruction_address_space, ), GlobalAlloc::VTable(ty, trait_ref) => { | 
