[compiler-rt] r174319 - asan/tsan: fix failing CHECK on windows
Dmitry Vyukov
dvyukov at google.com
Mon Feb 4 02:42:38 PST 2013
Author: dvyukov
Date: Mon Feb 4 04:42:38 2013
New Revision: 174319
URL: http://llvm.org/viewvc/llvm-project?rev=174319&view=rev
Log:
asan/tsan: fix failing CHECK on windows
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc?rev=174319&r1=174318&r2=174319&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Mon Feb 4 04:42:38 2013
@@ -249,10 +249,8 @@ int internal_sched_yield() {
}
// ---------------------- BlockingMutex ---------------- {{{1
-enum LockState {
- LOCK_UNINITIALIZED = 0,
- LOCK_READY = -1,
-};
+const uptr LOCK_UNINITIALIZED = 0;
+const uptr LOCK_READY = (uptr)-1;
BlockingMutex::BlockingMutex(LinkerInitialized li) {
// FIXME: see comments in BlockingMutex::Lock() for the details.
More information about the llvm-commits
mailing list