aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/AsmParser/LLLexer.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2024-03-27 15:31:55 +0100
committerGitHub <noreply@github.com>2024-03-27 15:31:55 +0100
commit11b20d7ab09511d9e2bcd40606dfd3b31976efe0 (patch)
tree47c37b9e9f832084abb9a221b95feec1adae00ca /llvm/lib/AsmParser/LLLexer.cpp
parentb43ec8e62b5f5a39be378c460339217511261400 (diff)
downloadllvm-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