[all-commits] [llvm/llvm-project] fba563: [clangd] TargetFinder: Fix assert-crash on Templat...
Adam Czachorowski via All-commits
all-commits at lists.llvm.org
Wed Oct 13 04:16:51 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fba563e92b6412f49e7e49299d3d27f04f2e1400
https://github.com/llvm/llvm-project/commit/fba563e92b6412f49e7e49299d3d27f04f2e1400
Author: Adam Czachorowski <adamcz at google.com>
Date: 2021-10-13 (Wed, 13 Oct 2021)
Changed paths:
M clang-tools-extra/clangd/FindTarget.cpp
M clang-tools-extra/clangd/unittests/FindTargetTests.cpp
Log Message:
-----------
[clangd] TargetFinder: Fix assert-crash on TemplateExpansion args.
Previously we would call getAsTemplate() when kind == TemplateExpansion,
which triggers an assertion. The call is now replaced with
getAsTemplateOrTemplatePattern(), which is exactly the same as
getAsTemplate(), except it allows calls when kind == TemplateExpansion.
No change in behavior for no-assert builds.
Differential Revision: https://reviews.llvm.org/D111648
More information about the All-commits
mailing list