aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/TextStubCommon.cpp
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail@igalia.com>2023-09-07 10:28:47 -0300
committerGitHub <noreply@github.com>2023-09-07 09:28:47 -0400
commit41518597705c558409725d4ba2d3c1af9110ca0d (patch)
tree31a750ca89af2621ef7a570caf631a1633bb1196 /llvm/lib/TextAPI/TextStubCommon.cpp
parent492c1f3d7cf672a1ae4df85350daf05f82f558c6 (diff)
downloadllvm-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