forked from OSchip/llvm-project
parent
b9b7362cdc
commit
a538aac8ce
|
|
@ -18,7 +18,7 @@ namespace __sanitizer {
|
||||||
|
|
||||||
// Make the compiler think that something is going on there.
|
// Make the compiler think that something is going on there.
|
||||||
static inline void break_optimization(void *arg) {
|
static inline void break_optimization(void *arg) {
|
||||||
#if SANITIZER_WINDOWS
|
#if _MSC_VER
|
||||||
// FIXME: make sure this is actually enough.
|
// FIXME: make sure this is actually enough.
|
||||||
__asm;
|
__asm;
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -402,8 +402,6 @@ void MaybeOpenReportFile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RawWrite(const char *buffer) {
|
void RawWrite(const char *buffer) {
|
||||||
static const char *kRawWriteError =
|
|
||||||
"RawWrite can't output requested buffer!\n";
|
|
||||||
uptr length = (uptr)internal_strlen(buffer);
|
uptr length = (uptr)internal_strlen(buffer);
|
||||||
if (length != internal_write(report_fd, buffer, length)) {
|
if (length != internal_write(report_fd, buffer, length)) {
|
||||||
// stderr may be closed, but we may be able to print to the debugger
|
// stderr may be closed, but we may be able to print to the debugger
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue