summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PHIEliminationUtils.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-06-02 08:40:42 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-06-02 08:40:42 +0000
commita9d4f77eb928ba0752466b604667bbf9a7af1c9a (patch)
tree9239bc80e08fa306ab1c6617c43ee226f9e8abac /llvm/lib/CodeGen/PHIEliminationUtils.h
parent3fbb763a92612bb6567a7e39b50bd3e7e2f2e6a7 (diff)
downloadbcm5719-llvm-a9d4f77eb928ba0752466b604667bbf9a7af1c9a.tar.gz
bcm5719-llvm-a9d4f77eb928ba0752466b604667bbf9a7af1c9a.zip
Allow paren casted throw statements inside of ternary expressions
clang would incorrectly not allow the following: int x = true ? (throw 1) : 2; The problem exists because we don't see beyond the parens. This, in turn, causes us to believe that we are choosing between void and int which we diagnose as an error. Instead, allow clang to see the 'throw' inside the parens. llvm-svn: 183085
Diffstat (limited to 'llvm/lib/CodeGen/PHIEliminationUtils.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud