tsan: fix windows build

llvm-svn: 200778
This commit is contained in:
Dmitry Vyukov 2014-02-04 17:27:29 +00:00
parent b9b7362cdc
commit a538aac8ce
2 changed files with 1 additions and 3 deletions

View File

@ -18,7 +18,7 @@ namespace __sanitizer {
// Make the compiler think that something is going on there.
static inline void break_optimization(void *arg) {
#if SANITIZER_WINDOWS
#if _MSC_VER
// FIXME: make sure this is actually enough.
__asm;
#else

View File

@ -402,8 +402,6 @@ void MaybeOpenReportFile() {
}
void RawWrite(const char *buffer) {
static const char *kRawWriteError =
"RawWrite can't output requested buffer!\n";
uptr length = (uptr)internal_strlen(buffer);
if (length != internal_write(report_fd, buffer, length)) {
// stderr may be closed, but we may be able to print to the debugger