diff options
| author | Mikhail R. Gadelha <mikhail@igalia.com> | 2023-09-07 10:28:47 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-07 09:28:47 -0400 |
| commit | 41518597705c558409725d4ba2d3c1af9110ca0d (patch) | |
| tree | 31a750ca89af2621ef7a570caf631a1633bb1196 /llvm/lib/TextAPI/TextStubCommon.cpp | |
| parent | 492c1f3d7cf672a1ae4df85350daf05f82f558c6 (diff) | |
| download | llvm-41518597705c558409725d4ba2d3c1af9110ca0d.zip llvm-41518597705c558409725d4ba2d3c1af9110ca0d.tar.gz llvm-41518597705c558409725d4ba2d3c1af9110ca0d.tar.bz2 | |
[libc] Fix gmtime test on systems with sizeof(time_t) == 4 (#65388)
This test creates a time_t variable and assigns 0xfffffffffe1d7b01 which
overflows the maximum time_t value for 64-bit time_t, then checks if the
syscall fails and errno was set.
In systems with sizeof(time_t) == 4, the value is narrowed down to
0xfe1d7b01 and doesn't overflow, causing the test to fail.
This patch then disables the test on systems with 32 bits long time_t.
Diffstat (limited to 'llvm/lib/TextAPI/TextStubCommon.cpp')
0 files changed, 0 insertions, 0 deletions
