commit | 649c6c50fd3dd13577071b26fec4495f7538d923 | [log] [tgz] |
---|---|---|
author | Hans Wennborg <hans@hanshq.net> | Thu Jun 06 09:16:36 2013 +0000 |
committer | Hans Wennborg <hans@hanshq.net> | Thu Jun 06 09:16:36 2013 +0000 |
tree | 0b52d6bb889101e338208f14945817cdc74caaee | |
parent | 9acb8b4355028887e8cc4aa8f683aceee021a62b [diff] |
Disallow reinterpret_cast from pointer to bool on Windows This became allowed by accident in r131201, but triggers an assert. That patch added an exception to allow conversion from pointers to narrow integral types for MSVC compatibility. However, a pointer can already be converted to bool in a civilized manner; allowing conversion via reinterpret_cast is a bad idea. Fixes PR16222. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183394 91177308-0d34-0410-b5e6-96231b3b80d8