diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2024-03-27 15:31:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 15:31:55 +0100 |
commit | 11b20d7ab09511d9e2bcd40606dfd3b31976efe0 (patch) | |
tree | 47c37b9e9f832084abb9a221b95feec1adae00ca /llvm/lib/AsmParser/LLLexer.cpp | |
parent | b43ec8e62b5f5a39be378c460339217511261400 (diff) | |
download | llvm-11b20d7ab09511d9e2bcd40606dfd3b31976efe0.zip llvm-11b20d7ab09511d9e2bcd40606dfd3b31976efe0.tar.gz llvm-11b20d7ab09511d9e2bcd40606dfd3b31976efe0.tar.bz2 |
[clang] Fix an out-of-bound crash when checking template partial specializations. (#86794)
I found this issue (a separate one) during the investigation of #86757,
the crash is similar in substituteParameterMappings, but at different
inner places.
This was an out-of-bound issue where we access front element in an empty
written template argument list to get the instantiation source range.
This patch fixes it by adding a proper guard.
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
0 files changed, 0 insertions, 0 deletions