diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-06-02 08:40:42 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-06-02 08:40:42 +0000 |
commit | a9d4f77eb928ba0752466b604667bbf9a7af1c9a (patch) | |
tree | 9239bc80e08fa306ab1c6617c43ee226f9e8abac /llvm/lib/Target/Sparc/SparcInstrInfo.cpp | |
parent | 3fbb763a92612bb6567a7e39b50bd3e7e2f2e6a7 (diff) | |
download | bcm5719-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/Target/Sparc/SparcInstrInfo.cpp')
0 files changed, 0 insertions, 0 deletions