aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-11-18 14:26:13 +0000
committerKostya Serebryany <kcc@google.com>2013-11-18 14:26:13 +0000
commit7214553322c51db3753c8fba0de394b519b7802c (patch)
treecd61a0ca96bbe48498ba868713c3620dca221c57
parent2991200255098ac0739952351b2eb2b487819eec (diff)
downloadcompiler-rt-7214553322c51db3753c8fba0de394b519b7802c.tar.gz
[asan] fix Windows build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195012 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/asan/asan_poisoning.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_poisoning.cc b/lib/asan/asan_poisoning.cc
index 40d3d2508..280aaeb90 100644
--- a/lib/asan/asan_poisoning.cc
+++ b/lib/asan/asan_poisoning.cc
@@ -294,6 +294,6 @@ void __sanitizer_annotate_contiguous_container(void *beg_p, void *end_p,
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);
}
}