| commit | 66572afde48b08fc3c9cc2722ee8457e9ebc98e3 | [log] [tgz] |
|---|---|---|
| author | Eli Friedman <eli.friedman@gmail.com> | Fri May 30 18:14:48 2008 +0000 |
| committer | Eli Friedman <eli.friedman@gmail.com> | Fri May 30 18:14:48 2008 +0000 |
| tree | 5ced1479c5b408d11e43cf7ffeb99f39b8e8c12f | |
| parent | 3360d898ec6b7694a7c885abfbcbb00e576810b3 [diff] |
Allow a pointer implicitly cast to a bool as a constant expression, as required by the standard (the standard doesn't know anything about implicit casts). Disallow pointers cast to non-integral arithmetic types as constant expressions. This was previously allowed by accident. llvm-svn: 51779