diff options
| author | Ralf Jung <post@ralfj.de> | 2024-07-02 21:05:22 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-08-12 15:15:14 +0200 |
| commit | fb4738571fdecbee2ad0d89f6e181f2feb90e908 (patch) | |
| tree | 65e3f5339bca5014cf472075c1e022a79d52bd5f /src | |
| parent | 007fa3b94eed08b51a7d5aea2a79292744f04935 (diff) | |
| download | rust-fb4738571fdecbee2ad0d89f6e181f2feb90e908.tar.gz rust-fb4738571fdecbee2ad0d89f6e181f2feb90e908.zip | |
Miri function identity hack: account for possible inlining
Diffstat (limited to 'src')
| -rw-r--r-- | src/common.rs | 2 |
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 |
