diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-03-30 13:27:19 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-30 11:03:56 -0400 |
| commit | c1cc1ebc35f7a56669db2f88b6d4ff8f1603ec59 (patch) | |
| tree | 17e1064c3d862df1bed5ea4f2e73d789afb1893f /lib/std/debug.zig | |
| parent | 8cad45349510b2995a49fc907bdc3c8bf86aa21b (diff) | |
| download | zig-c1cc1ebc35f7a56669db2f88b6d4ff8f1603ec59.tar.gz zig-c1cc1ebc35f7a56669db2f88b6d4ff8f1603ec59.zip | |
ir: Avoid constant-folding ptr to sentinels
Constant-folding the pointers to the expected sentinel value have some
big problems: it hides the real content of the array, makes the pointer
to the sentinel point to a completely different memory region and treats
it like a const value even when the underlying array is mutable.
Fixes #4840
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
