Skip to content

Commit

Permalink
Miri function identity hack: account for possible inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung authored and GuillaumeGomez committed Aug 12, 2024
1 parent 007fa3b commit fb47385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb47385

Please sign in to comment.