diff options
author | Adam Czachorowski <adamcz@google.com> | 2021-10-26 13:34:10 +0200 |
---|---|---|
committer | Adam Czachorowski <adamcz@google.com> | 2021-10-26 17:28:40 +0200 |
commit | e8f4a01189143854f30e2bb622baa729a42f152d (patch) | |
tree | e572d619b408b838ca0fa3b2cdb5ac24c9e72a61 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | 03506722e0c348ce52d87f7f37f024d7adec5c43 (diff) | |
download | llvm-e8f4a01189143854f30e2bb622baa729a42f152d.zip llvm-e8f4a01189143854f30e2bb622baa729a42f152d.tar.gz llvm-e8f4a01189143854f30e2bb622baa729a42f152d.tar.bz2 |
[clangd] Fix a hover crash on templated spaceship operator.
We make assumption that:
getDeclForComment(getDeclForComment(X)) == getDeclForComment(X)
but this is not true if you have a template
instantionation of a template instantiation, which is the case when, for
example, you have a <=> operator in a templated class.
This fix makes getDeclForComment() call itself recursively to ensure
this property is always true.
Fixes https://github.com/clangd/clangd/issues/901
Differential Revision: https://reviews.llvm.org/D112527
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions