[patch] Use a more idiomatic bool operator in ErrorOr

Reid Kleckner rnk at google.com
Thu Jan 16 10:05:46 PST 2014


With the impending switch to C++11, feel free to cleanup instances of this
safe bool idiom.


On Wed, Jan 15, 2014 at 10:19 AM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> This seems to be the more common way to implement operator bool in
> LLVM. Any reason why the one in ErrorOr was different?
>
> Cheers,
> Rafael
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140116/19e52fdc/attachment.html>


More information about the llvm-commits mailing list