aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/MemRegion.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-02-18 22:04:06 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-02-18 22:04:06 +0000
commit86024013d4c3728122c58fa07a2a67e6c15837ef (patch)
tree1d9ee12ad5d09f5c35f44f6fe06d876dd8c5ffc9 /lib/StaticAnalyzer/Core/MemRegion.cpp
parente215ba1c2a3f29fe2cbc4cfb0e532cd204970c49 (diff)
Implement constant expression support for __real__ and __imag__ on lvalue
complex numbers. Treat complex numbers as arrays of the corresponding component type, in order to make std::complex behave properly if implemented in terms of _Complex T. Apparently libstdc++'s std::complex is implemented this way, and we were rejecting a member like this: constexpr double real() { return __real__ val; } because it was marked constexpr but unable to produce a constant expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/MemRegion.cpp')
0 files changed, 0 insertions, 0 deletions