summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-09-23 16:03:53 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-09-23 16:03:53 +0000
commitc4284e3aad1299adcbc66ffe02f632c79fd40663 (patch)
tree8a838abc00cb66741f6635a038e3515e4d61efdd /clang/lib/Lex
parentff08e926ba8dee4111adf7f7df72905de7a610ea (diff)
downloadbcm5719-llvm-c4284e3aad1299adcbc66ffe02f632c79fd40663.tar.gz
bcm5719-llvm-c4284e3aad1299adcbc66ffe02f632c79fd40663.zip
[Sema] Don't create an invalid source range for overlong initializer lists.
We took both source locations from the end of the initializer list what the code below doesn't expect. This can lead to a crash when rendering the diagnostic (PR24816). Assert that we have more than one element in a scalar initializer with too many elements. llvm-svn: 248391
Diffstat (limited to 'clang/lib/Lex')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud