diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-10-23 10:20:57 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-23 22:48:25 -0400 |
| commit | 1690b35770a97aec4b8a7b1b31a61b01e04f5656 (patch) | |
| tree | 33e221f8173d3732e0cb5899dc5e50fe176ace78 /src/codegen/llvm.zig | |
| parent | 22b4c9e1a9595bd94ada4c500a430e2668ffcd07 (diff) | |
| download | zig-1690b35770a97aec4b8a7b1b31a61b01e04f5656.tar.gz zig-1690b35770a97aec4b8a7b1b31a61b01e04f5656.zip | |
std: Fix edge case in TLS tp calculation
The TLS area may be located in the upper part of the address space and,
if the platform expects a constant offset to be applied, may make the tp
register calculation overflow.
Use +% instead of +, the overflow is harmless.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions
