[PATCH] D33895: [Support] Add TempFailureRetry helper function

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 14 07:11:28 PDT 2017


labath updated this revision to Diff 102545.
labath added a comment.

I've renamed the function.

Decltype trick will not work for the fail value because F and As... are not yet
defined at that point (although this isn't the reason why I originally added the
extra template param). It's possible to achieve it with std::result_of though.

I've replaced the other uses of decltype with result_of as I think it would be
confusing to use both.


https://reviews.llvm.org/D33895

Files:
  include/llvm/Support/Errno.h
  lib/Support/MemoryBuffer.cpp
  lib/Support/Unix/Path.inc
  lib/Support/Unix/Process.inc
  unittests/Support/CMakeLists.txt
  unittests/Support/ErrnoTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33895.102545.patch
Type: text/x-patch
Size: 5936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170614/41d2c1b5/attachment-0001.bin>


More information about the llvm-commits mailing list