commit | cdfccccb1ea3e050b07dc59f87e214ee979da2ae | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Fri Oct 05 20:58:37 2018 +0100 |
committer | Andrew Scull <ascull@google.com> | Fri Oct 05 21:44:43 2018 +0100 |
tree | 819b945b890b8bfabe7e3c6e29c75e0dba88961d | |
parent | 5e1ddfae19f7052e9e27b1bf2c2d8ea3c9bcf5b0 [diff] [blame] |
Update clang to r339409. Change-Id: I800772d2d838223be1f6b40d490c4591b937fca2
diff --git a/linux-x64/clang/include/llvm/Support/Errno.h b/linux-x64/clang/include/llvm/Support/Errno.h index 35dc1ea..8069c36 100644 --- a/linux-x64/clang/include/llvm/Support/Errno.h +++ b/linux-x64/clang/include/llvm/Support/Errno.h
@@ -34,9 +34,10 @@ inline auto RetryAfterSignal(const FailT &Fail, const Fun &F, const Args &... As) -> decltype(F(As...)) { decltype(F(As...)) Res; - do + do { + errno = 0; Res = F(As...); - while (Res == Fail && errno == EINTR); + } while (Res == Fail && errno == EINTR); return Res; }