Add a comment for check_abi()
This commit is contained in:
parent
c6ae57cb83
commit
97bc0eefe7
1 changed files with 3 additions and 0 deletions
|
|
@ -276,6 +276,9 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
|||
None => return Ok(()),
|
||||
};
|
||||
|
||||
// Check against the ABI of the MIR body we are calling (not the ABI of `instance`;
|
||||
// these can differ when `find_mir_or_eval_fn` does something clever like resolve
|
||||
// exported symbol names).
|
||||
check_abi(self, self.tcx.type_of(body.source.def_id()))?;
|
||||
|
||||
self.push_stack_frame(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue