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
2 files changed
tree: 5ced1479c5b408d11e43cf7ffeb99f39b8e8c12f
  1. clang/
  2. llvm/