about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-07-02 21:05:22 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2024-08-12 15:15:14 +0200
commitfb4738571fdecbee2ad0d89f6e181f2feb90e908 (patch)
tree65e3f5339bca5014cf472075c1e022a79d52bd5f /src
parent007fa3b94eed08b51a7d5aea2a79292744f04935 (diff)
downloadrust-fb4738571fdecbee2ad0d89f6e181f2feb90e908.tar.gz
rust-fb4738571fdecbee2ad0d89f6e181f2feb90e908.zip
Miri function identity hack: account for possible inlining
Diffstat (limited to 'src')
-rw-r--r--src/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.rs b/src/common.rs
index 35699346b29..19333689aaa 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -221,7 +221,7 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
                         }
                         value
                     }
-                    GlobalAlloc::Function(fn_instance) => self.get_fn_addr(fn_instance),
+                    GlobalAlloc::Function { instance, .. } => self.get_fn_addr(instance),
                     GlobalAlloc::VTable(ty, trait_ref) => {
                         let alloc = self
                             .tcx