diff options
author | Mikhail R. Gadelha <mikhail@igalia.com> | 2024-07-15 18:16:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-15 09:16:02 -0700 |
commit | 106621b601d7dc7c4929fba293f7e5ffe6b92c58 (patch) | |
tree | 40bf792ec65c648ac73305d450fc7612391fc24a /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c2fab5a4c69c857061b06b9a826bf4730821e483 (diff) | |
download | llvm-106621b601d7dc7c4929fba293f7e5ffe6b92c58.zip llvm-106621b601d7dc7c4929fba293f7e5ffe6b92c58.tar.gz llvm-106621b601d7dc7c4929fba293f7e5ffe6b92c58.tar.bz2 |
[libc][NFC] Fix printed test time in 32-bit systems (#98922)
clock() returns a clock_t, which is a long and might overflow in 32-bit
systems when the test takes a long time to run. Changing it to uint64_t
fixes this issue. Before:
[ RUN ] LlvmLibcHashTest.Avalanche
[ OK ] LlvmLibcHashTest.Avalanche (18446744073709551138 ms)
After this patch:
[ RUN ] LlvmLibcHashTest.Avalanche
[ OK ] LlvmLibcHashTest.Avalanche (4154 ms)
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions