tsan: fix WTFAnnotateBenignRaceSized annotation

actually use the passed size

llvm-svn: 195133
This commit is contained in:
Dmitry Vyukov 2013-11-19 16:03:15 +00:00
parent 2b00289bd6
commit 2918b67029
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ void INTERFACE_ATTRIBUTE WTFAnnotateHappensAfter(char *f, int l, uptr addr) {
void INTERFACE_ATTRIBUTE WTFAnnotateBenignRaceSized(
char *f, int l, uptr mem, uptr sz, char *desc) {
SCOPED_ANNOTATION(AnnotateBenignRaceSized);
BenignRaceImpl(f, l, mem, 1, desc);
BenignRaceImpl(f, l, mem, sz, desc);
}
int INTERFACE_ATTRIBUTE RunningOnValgrind() {