tsan: fix shift overflow
authorDmitry Vyukov <dvyukov@google.com>
Sun, 26 Jul 2015 07:45:26 +0000 (07:45 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Sun, 26 Jul 2015 07:45:26 +0000 (07:45 +0000)
commitd161fcba17227a7180d4c2b589ac039812db2bd7
tree124ecd78fcbb41b59794cc9f08e405eaa4eb9c4b
parent4376ddb88e2a1a92a216ca15757bda66530f829f
tsan: fix shift overflow

3<<30 fits into 32-bit unsigned, but does not fit into int.
Found by ubsan.

llvm-svn: 243241
compiler-rt/lib/tsan/rtl/tsan_sync.h