diff --git a/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp b/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp --- a/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp @@ -88,7 +88,7 @@ return; } } - race = New(); + race = static_cast(Alloc(sizeof(ExpectRace))); race->addr = addr; race->size = size; race->file = f;