[PATCH] Add ErrorOr<>::getOrDie() which uses report_fatal_error instead of assert.
rnk at google.com
Thu Oct 9 11:29:16 PDT 2014
I don't think we should be burying invisible calls to report_fatal_error in
libraries. Can you point at the code which wants to do this?
On Thu, Oct 9, 2014 at 10:30 AM, Alexander Kornienko <alexfh at google.com>
> 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.
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits