]> granicus.if.org Git - clang/commit
Fix fallout from r219557
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 12 Nov 2014 22:19:06 +0000 (22:19 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 12 Nov 2014 22:19:06 +0000 (22:19 +0000)
commit24a4c64ba57cfcce05a829dd53ec8fa850445604
tree60dbb513ff771d7fd350977ee874dcbac8b8b561
parent081c114a6803bd516a5721ebf78d795d7d8ddc48
Fix fallout from r219557

Summary:
Consider the following nifty 1 liner: (0 ? csqrtl(2.0f) : sqrtl(2.0f)). One can easily obtain such code from e.g. tgmath. Right now it produces an assertion because we fail to do the promotion real => _Complex real.

The case was properly handled previously (old handleOtherComplexFloatConversion routine), but was forgotten in the current version. This seems to be about fallout from r219557

Reviewers: chandlerc, rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D6217

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221821 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
test/CodeGen/complex.c