llvm.org GIT mirror llvm / dd2fdd8
Some versions of gcc still warn about "ignoring return value ... declared with attribute warn_unused_result" here - suppress the warning harder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114072 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 9 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6868 raw_svector_ostream OS(Buffer);
6969 OS << "LLVM ERROR: " << Reason << "\n";
7070 StringRef MessageStr = OS.str();
71 (void)::write(2, MessageStr.data(), MessageStr.size());
71 ssize_t written = ::write(2, MessageStr.data(), MessageStr.size());
72 (void)written; // If something went wrong, we deliberately just give up.
7273 }
7374
7475 // If we reached here, we are failing ungracefully. Run the interrupt handlers