aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorMichael Liao <michael.hliao@gmail.com>2020-12-02 10:51:45 -0500
committerMichael Liao <michael.hliao@gmail.com>2020-12-02 10:53:59 -0500
commit21d74172dff79378c5c45ca21b7faa70df64f41a (patch)
treedd4d068e3770b6d76eb6f5f2f98704319167c401 /llvm/lib/Support/ErrorHandling.cpp
parentd8949a8ad3ca2a39ffe69df76e2c3f5fd73efec0 (diff)
downloadllvm-21d74172dff79378c5c45ca21b7faa70df64f41a.zip
llvm-21d74172dff79378c5c45ca21b7faa70df64f41a.tar.gz
llvm-21d74172dff79378c5c45ca21b7faa70df64f41a.tar.bz2
Remove `-Wunused-result` and `-Wpedantic` warnings from GCC. NFC.
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
-rw-r--r--llvm/lib/Support/ErrorHandling.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index 23b9f96..ce63442 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/lib/Support/ErrorHandling.cpp
@@ -170,9 +170,9 @@ void llvm::report_bad_alloc_error(const char *Reason, bool GenCrashDiag) {
// an OOM to stderr and abort.
const char *OOMMessage = "LLVM ERROR: out of memory\n";
const char *Newline = "\n";
- (void)::write(2, OOMMessage, strlen(OOMMessage));
- (void)::write(2, Reason, strlen(Reason));
- (void)::write(2, Newline, strlen(Newline));
+ (void)!::write(2, OOMMessage, strlen(OOMMessage));
+ (void)!::write(2, Reason, strlen(Reason));
+ (void)!::write(2, Newline, strlen(Newline));
abort();
#endif
}