[compiler-rt] r353108 - [libFuzzer][Windows] Clean up RawPrint
Jonathan Metzman via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 4 15:01:07 PST 2019
Author: metzman
Date: Mon Feb 4 15:01:06 2019
New Revision: 353108
URL: http://llvm.org/viewvc/llvm-project?rev=353108&view=rev
Log:
[libFuzzer][Windows] Clean up RawPrint
Summary:
Use `_write` instead of the deprecated alias `write` on Windows.
Also, remove comment saying RawPrint is untested on Windows.
Reviewers: vitalybuka
Reviewed By: vitalybuka
Subscribers: vitalybuka
Differential Revision: https://reviews.llvm.org/D57589
Modified:
compiler-rt/trunk/lib/fuzzer/FuzzerIOWindows.cpp
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerIOWindows.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerIOWindows.cpp?rev=353108&r1=353107&r2=353108&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerIOWindows.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerIOWindows.cpp Mon Feb 4 15:01:06 2019
@@ -333,8 +333,7 @@ bool IsInterestingCoverageFile(const std
}
void RawPrint(const char *Str) {
- // Not tested, may or may not work. Fix if needed.
- write(2, Str, strlen(Str));
+ _write(2, Str, strlen(Str));
}
} // namespace fuzzer
More information about the llvm-commits
mailing list