Skip to content

Commit 12ede21

Browse files
committed
Miri function identity hack: account for possible inlining
1 parent 994041a commit 12ede21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
220220
}
221221
value
222222
}
223-
GlobalAlloc::Function(fn_instance) => self.get_fn_addr(fn_instance),
223+
GlobalAlloc::Function { instance, .. } => self.get_fn_addr(instance),
224224
GlobalAlloc::VTable(ty, trait_ref) => {
225225
let alloc = self
226226
.tcx

0 commit comments

Comments
 (0)