[llvm] r229980 - Disallow implicit conversions from None to integer types

Justin Bogner mail at justinbogner.com
Fri Feb 20 00:23:47 PST 2015


Eric Christopher <echristo at gmail.com> writes:
> Broke lld it looks like:
>
> llvm[4]: Compiling WinLinkDriver.cpp for Debug+Asserts build
>
> /usr/local/google/home/echristo/sources/llvm/tools/lld/lib/Driver/
> WinLinkDriver.cpp:461:12: error: cannot initialize return object of type
> 'bool' with an lvalue of type 'llvm::NoneType'
>
>     return llvm::None;
>            ^~~~~~~~~~

Fixed in r229997. This function returns bool, so llvm::None doesn't
actually make any sense here.



More information about the llvm-commits mailing list