summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-05-21 22:21:19 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-05-21 22:21:19 +0000
commit440d456c5cf9613a3ee6a3297f892ddd8da5b8f8 (patch)
tree59a4bb0afccd9644ffbffbd4453ade26095c93ff /lib/CodeGen/CGExprAgg.cpp
parent52f926cc32e4f4969f767e98d98f0137358d5f12 (diff)
downloadclang-440d456c5cf9613a3ee6a3297f892ddd8da5b8f8.tar.gz
clang-440d456c5cf9613a3ee6a3297f892ddd8da5b8f8.tar.bz2
clang-440d456c5cf9613a3ee6a3297f892ddd8da5b8f8.tar.xz
PR16094: I should have known Obj-C init-capture disambiguation couldn't be
*that* easy... Try a bit harder to disambiguate. This is mostly straightforward, but for =-style initializers, we actually need to know where an expression ends: [foo = bar baz] is a message send, whereas [foo = bar + baz] is a lambda-introducer. Handle this by parsing the expression eagerly, and replacing it with an annotation token. By chance, we use the *exact same* parsing rules in both cases (except that we need to assume we're inside a message send for the parse, to turn off various forms of inapplicable error recovery). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions