Do not emit alloca for ZST locals with multiple assignments

When rebuilding the standard library with `-Zbuild-std` this reduces the
number of locals that require an allocation from 62315 to 61767.
This commit is contained in:
Tomasz Miąsko 2021-06-09 00:00:00 +00:00
parent 0279cb11ed
commit 40c9aaee13
2 changed files with 76 additions and 95 deletions

View file

@ -1,8 +1,8 @@
error: values of the type `[u8; 18446744073709551615]` are too big for the current architecture
--> $DIR/issue-69485-var-size-diffs-too-large.rs:6:12
--> $DIR/issue-69485-var-size-diffs-too-large.rs:6:5
|
LL | Bug::V([0; !0]);
| ^^^^^^^
| ^^^^^^^^^^^^^^^
error: aborting due to previous error