diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-05-30 18:14:48 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-05-30 18:14:48 +0000 |
commit | c1cc6dccd42b91a2ebb397415940da91dbf36103 (patch) | |
tree | 858115730dcbb0e11028e4d34f8c652ebb3f86e6 /lib/CodeGen/CGExprConstant.cpp | |
parent | f8f873deef78de611dd793a1e1201bef0d5a54a3 (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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions