diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-09-23 16:03:53 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-09-23 16:03:53 +0000 |
commit | c4284e3aad1299adcbc66ffe02f632c79fd40663 (patch) | |
tree | 8a838abc00cb66741f6635a038e3515e4d61efdd /clang/lib/Lex | |
parent | ff08e926ba8dee4111adf7f7df72905de7a610ea (diff) | |
download | bcm5719-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