[PATCH] D142224: [Support] Emulate SIGPIPE handling in raw_fd_ostream write for Windows
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 24 11:29:36 PST 2023
erichkeane added inline comments.
================
Comment at: llvm/lib/Support/Windows/Signals.inc:834
+ int RetCode = (int)EP->ExceptionRecord->ExceptionCode;
+ if (RetCode == (0xE0000000 | EX_IOERR))
+ return;
----------------
This patch seems to cause a self-build Werror regression. The mask here is large enough to cause the RHS of this to be unsigned, so the comparison hits `-Wsign-compare`. See the example here https://godbolt.org/z/fa5q889jh
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142224/new/
https://reviews.llvm.org/D142224
More information about the cfe-commits
mailing list