[PATCH] Add ErrorOr<>::getOrDie() which uses report_fatal_error instead of assert.

Alexander Kornienko alexfh at google.com
Thu Oct 9 10:30:18 PDT 2014


Hi rafael,

This method allows writing code that consistently fails in case of
dereferencing an ErrorOr<> containing no value rather than crashing in debug and
using uninitialized data in release build.

http://reviews.llvm.org/D5706

Files:
  include/llvm/Support/ErrorOr.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5706.14662.patch
Type: text/x-patch
Size: 885 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141009/51d89227/attachment.bin>


More information about the llvm-commits mailing list