diff options
Diffstat (limited to 'llvm/include/llvm/Support/Errno.h')
-rw-r--r-- | llvm/include/llvm/Support/Errno.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/Errno.h b/llvm/include/llvm/Support/Errno.h index aedb5fb292b84..dc3b3322ed982 100644 --- a/llvm/include/llvm/Support/Errno.h +++ b/llvm/include/llvm/Support/Errno.h @@ -30,8 +30,8 @@ std::string StrError(); std::string StrError(int errnum); template <typename FailT, typename Fun, typename... Args> -inline auto RetryAfterSignal(const FailT &Fail, const Fun &F, - const Args &... As) -> decltype(F(As...)) { +inline decltype(auto) RetryAfterSignal(const FailT &Fail, const Fun &F, + const Args &... As) { decltype(F(As...)) Res; do { errno = 0; |