diff options
| author | Evan Haas <evan@lagerdata.com> | 2021-08-02 08:15:59 -0700 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-08-03 08:38:15 +0300 |
| commit | bc18e93825f1f3703b97590cc0e963b3faa8cd3e (patch) | |
| tree | d4a2776c0b1f9bf65b135aa6a203ea28b32d195e /src/Compilation.zig | |
| parent | 41d7787b69a437e21351d103353fc2eefafb5d17 (diff) | |
| download | zig-bc18e93825f1f3703b97590cc0e963b3faa8cd3e.tar.gz zig-bc18e93825f1f3703b97590cc0e963b3faa8cd3e.zip | |
translate-c: better codegen for pointer index by int literal
#8589 introduced correct handling of signed (possibly negative) array access
of pointers. Since unadorned integer literals in C are signed, this resulted
in inefficient generated code when indexing a pointer by a non-negative
integer literal.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
