[compiler-rt] r195012 - [asan] fix Windows build
Kostya Serebryany
kcc at google.com
Mon Nov 18 06:26:13 PST 2013
Author: kcc
Date: Mon Nov 18 08:26:13 2013
New Revision: 195012
URL: http://llvm.org/viewvc/llvm-project?rev=195012&view=rev
Log:
[asan] fix Windows build
Modified:
compiler-rt/trunk/lib/asan/asan_poisoning.cc
Modified: compiler-rt/trunk/lib/asan/asan_poisoning.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_poisoning.cc?rev=195012&r1=195011&r2=195012&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_poisoning.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_poisoning.cc Mon Nov 18 08:26:13 2013
@@ -294,6 +294,6 @@ void __sanitizer_annotate_contiguous_con
PoisonShadow(b2, c - b2, kAsanUserPoisonedMemoryMagic);
if (b1 != b2) {
CHECK_EQ(b2 - b1, granularity);
- *(u8*)MemToShadow(b1) = b - b1;
+ *(u8*)MemToShadow(b1) = static_cast<u8>(b - b1);
}
}
More information about the llvm-commits
mailing list