The return place's layout is only used once per frame, so caching doesn't help
This commit is contained in:
parent
4165c890ed
commit
ab708f5c6f
1 changed files with 1 additions and 1 deletions
|
|
@ -624,7 +624,7 @@ where
|
|||
// their layout on return.
|
||||
PlaceTy {
|
||||
place: *return_place,
|
||||
layout: self.layout_of_local(self.frame(), mir::RETURN_PLACE, None)?,
|
||||
layout: self.layout_of(self.frame().mir.return_ty())?,
|
||||
},
|
||||
None => return err!(InvalidNullPointerUsage),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue