diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2015-07-02 01:10:03 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2015-07-02 01:10:03 +0000 |
| commit | 41acb316232728a8495af291db57f70338582d6c (patch) | |
| tree | 21594cd862ecf105e408cdb6ccac620f2b5e72c8 /compiler-rt/lib/sanitizer_common/sanitizer_common.h | |
| parent | b05a43f59b41bf385e94f3729585762ac7bbb88e (diff) | |
| download | bcm5719-llvm-41acb316232728a8495af291db57f70338582d6c.tar.gz bcm5719-llvm-41acb316232728a8495af291db57f70338582d6c.zip | |
Revert r241217, it breaks the build on Windows.
llvm-svn: 241219
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_common.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h index 263dfaf4460..7ddedccb7ce 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h @@ -383,7 +383,7 @@ INLINE uptr RoundUpToPowerOfTwo(uptr size) { uptr up = MostSignificantSetBitIndex(size); CHECK(size < (1ULL << (up + 1))); CHECK(size > (1ULL << up)); - return 1ULL << (up + 1); + return 1UL << (up + 1); } INLINE uptr RoundUpTo(uptr size, uptr boundary) { @@ -659,7 +659,8 @@ void MaybeStartBackgroudThread(); // memset/memcpy/etc. static inline void SanitizerBreakOptimization(void *arg) { #if _MSC_VER - _ReadWriteBarrier(); + // FIXME: make sure this is actually enough. + __asm; #else __asm__ __volatile__("" : : "r" (arg) : "memory"); #endif |

