]> granicus.if.org Git - clang/commit
Fix sema support for the gnu ?: expression with a
authorChris Lattner <sabre@nondot.org>
Mon, 26 Nov 2007 01:40:58 +0000 (01:40 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Nov 2007 01:40:58 +0000 (01:40 +0000)
commita21ddb30e56026967d58e26c5212744e1831305b
tree51d4a01a7dbdea82e7448fe68e8e3772ee7336a1
parent09376fd7f7ea9b4a4846c3d9cd1bfade17e5ac8d
Fix sema support for the gnu ?: expression with a
missing middle expression, and fix a codegen bug where
we didn't correctly promote the condition to the right
result type.  This fixes PR1824.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44322 91177308-0d34-0410-b5e6-96231b3b80d8
CodeGen/CGExprScalar.cpp
Sema/SemaExpr.cpp
test/CodeGen/conditional-gnu-ext.c [new file with mode: 0644]