[llvm] r181868 - Use only explicit bool conversion operators

Timur Iskhodzhanov timurrrr at google.com
Wed May 15 02:01:33 PDT 2013


2013/5/15 David Blaikie <dblaikie at gmail.com>:
> +++ llvm/trunk/lib/Support/Windows/Windows.h Wed May 15 02:36:59 2013
> @@ -75,7 +75,7 @@ public:
>    }
>
>    // True if Handle is valid.
> -  operator bool() const {
> +  LLVM_EXPLICIT operator bool() const {
>      return HandleTraits::IsValid(Handle) ? true : false;
>    }

You've forgotten to IWYU.
Hopefully r181873 is the right fix.



More information about the llvm-commits mailing list