David Blaikie
99f910f179
Correctly model NRVO returns ( #7865 )
...
The AST doesn't really matter here, since it's NRVO, there's no actual
code to generate to return the value. But having a correct AST does
address at least one clang false-positive diagnostic:
```
error: stack memory associated with local variable 'return_storage' is returned
3 | fn F() -> bool {
| ^
```
2026-09-29 21:06:48 +00:00
..
2026-09-22 15:04:40 +00:00
2026-09-29 17:23:20 +00:00
2026-09-29 17:23:20 +00:00
2026-09-25 22:59:55 +00:00
2026-09-22 15:04:40 +00:00
2026-09-22 15:04:40 +00:00
2026-09-29 17:23:20 +00:00
2026-09-29 00:55:21 +00:00
2026-09-29 00:13:37 +00:00
2026-09-29 17:23:20 +00:00
2026-09-28 22:39:03 +00:00
2026-09-29 17:23:20 +00:00
2026-09-29 17:23:20 +00:00
2026-09-29 17:23:20 +00:00
2026-09-22 15:04:40 +00:00
2026-09-28 22:39:03 +00:00
2026-09-29 00:13:37 +00:00
2026-09-29 00:13:37 +00:00
2026-09-28 23:16:19 +00:00
2026-09-29 17:23:20 +00:00
2026-09-29 21:06:48 +00:00
2026-09-28 22:39:03 +00:00
2026-09-22 15:04:40 +00:00
2026-09-22 15:04:40 +00:00
2026-09-22 15:04:40 +00:00
2026-09-28 23:16:19 +00:00
2026-09-29 17:23:20 +00:00
2026-09-28 23:16:19 +00:00
2026-09-22 15:04:40 +00:00
2026-09-24 00:06:28 +00:00
2026-09-29 17:23:20 +00:00
2026-09-22 15:04:40 +00:00
2026-09-28 23:16:19 +00:00
2026-09-29 17:23:20 +00:00
2026-09-29 17:23:20 +00:00
2026-09-29 17:23:20 +00:00
2026-09-22 15:04:40 +00:00
2026-09-28 22:39:03 +00:00