diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-24 01:29:28 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-24 01:29:28 +0000 |
commit | 0b098754b73f3b96d00ecb1c7605760b11c90298 (patch) | |
tree | b0e5397d302313bbcb18d51efe288cb69a0397f5 /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py | |
parent | 95c18c7beec32eaa143ed1f4cea4944e09aa9708 (diff) | |
download | bcm5719-llvm-0b098754b73f3b96d00ecb1c7605760b11c90298.tar.gz bcm5719-llvm-0b098754b73f3b96d00ecb1c7605760b11c90298.zip |
Fix interactions between __builtin_constant_p and constexpr to match
current trunk GCC.
GCC permits information from outside the operand of
__builtin_constant_p (but in the same constant evaluation context) to be
used within that operand; clang now does so too. A few other minor
deviations from GCC's behavior showed up in my testing and are also
fixed (matching GCC):
* Clang now supports nullptr_t as the argument type for
__builtin_constant_p
* Clang now returns true from __builtin_constant_p if called with a
null pointer
* Clang now returns true from __builtin_constant_p if called with an
integer cast to pointer type
llvm-svn: 359059
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions