]> granicus.if.org Git - clang/commit
The FP constant evaluator was missing a few cases of unary operators that return...
authorJohn McCall <rjmccall@apple.com>
Fri, 7 May 2010 22:08:54 +0000 (22:08 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 7 May 2010 22:08:54 +0000 (22:08 +0000)
commitabd3a857ace59100305790545d1baae5877b8945
treeb9fb48abaa4e5510761b2edf5b5a38b9195c9032
parent6ad9ac097918fbdeb443ea7b99d4db9e49b28534
The FP constant evaluator was missing a few cases of unary operators that return floats
but whose operand isn't a float:  specifically, __real__ and __imag__.  Instead
of filtering these out, just implement them.

Fixes <rdar://problem/7958272>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103307 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/CodeGen/complex.c