don't copy zero-sized types to the stack

This commit is contained in:
Folkert 2023-05-02 22:18:41 +02:00
parent 35c507a33f
commit 0fa85fe91d
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 6 additions and 0 deletions

View file

@ -1079,6 +1079,7 @@ impl<
}
| Complex { base_offset, size },
) => (*base_offset, *size),
NoData => (0, 0),
storage => {
internal_error!(
"Data not on the stack for sym {:?} with storage {:?}",