[compiler-rt] r319977 - Fix broken windows sanitizer buildbot
Vlad Tsyrklevich via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 14:40:23 PST 2017
Author: vlad.tsyrklevich
Date: Wed Dec 6 14:40:23 2017
New Revision: 319977
URL: http://llvm.org/viewvc/llvm-project?rev=319977&view=rev
Log:
Fix broken windows sanitizer buildbot
r319875 caused a sign comparison build failure. Explicitly set the
enum's type to be unsigned.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h?rev=319977&r1=319976&r2=319977&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h Wed Dec 6 14:40:23 2017
@@ -22,7 +22,7 @@ namespace __sanitizer {
template <class basic_int_t = uptr>
class BasicBitVector {
public:
- enum SizeEnum { kSize = sizeof(basic_int_t) * 8 };
+ enum SizeEnum : uptr { kSize = sizeof(basic_int_t) * 8 };
uptr size() const { return kSize; }
// No CTOR.
More information about the llvm-commits
mailing list