[compiler-rt] r320284 - Update another sanitizer test for C++14.
Ahmed Bougacha via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 9 21:50:23 PST 2017
Author: ab
Date: Sat Dec 9 21:50:23 2017
New Revision: 320284
URL: http://llvm.org/viewvc/llvm-project?rev=320284&view=rev
Log:
Update another sanitizer test for C++14.
Follow-up to r320251.
Modified:
compiler-rt/trunk/test/asan/TestCases/Posix/halt_on_error-torture.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Posix/halt_on_error-torture.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/halt_on_error-torture.cc?rev=320284&r1=320283&r2=320284&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/halt_on_error-torture.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/halt_on_error-torture.cc Sat Dec 9 21:50:23 2017
@@ -26,7 +26,7 @@ size_t niter = 10;
void random_delay(unsigned *seed) {
*seed = 1664525 * *seed + 1013904223;
- struct timespec delay = { 0, (*seed % 1000) * 1000 };
+ struct timespec delay = { 0, static_cast<long>((*seed % 1000) * 1000) };
nanosleep(&delay, 0);
}
More information about the llvm-commits
mailing list