[compiler-rt] r199216 - [tsan] one more explicit memset in tsan rtl (to please gcc 4.8.2)
Kostya Serebryany
kcc at google.com
Tue Jan 14 07:00:10 PST 2014
Author: kcc
Date: Tue Jan 14 09:00:10 2014
New Revision: 199216
URL: http://llvm.org/viewvc/llvm-project?rev=199216&view=rev
Log:
[tsan] one more explicit memset in tsan rtl (to please gcc 4.8.2)
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_vector.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_vector.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_vector.h?rev=199216&r1=199215&r2=199216&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_vector.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_vector.h Tue Jan 14 09:00:10 2014
@@ -82,7 +82,7 @@ class Vector {
EnsureSize(size);
if (old_size < size) {
for (uptr i = old_size; i < size; i++)
- begin_[i] = T();
+ internal_memset(&begin_[i], 0, sizeof(begin_[i]));
}
}
More information about the llvm-commits
mailing list