diff options
author | Krystian Stasiowski <sdkrystian@gmail.com> | 2024-02-08 13:59:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 13:59:47 -0500 |
commit | a56fa161ab2617fa3aab3f91285fc757b6a8e09b (patch) | |
tree | 9846e436ee30a9b2e7ead7e8dafba70f5165e35a /llvm/lib/IR/Function.cpp | |
parent | a1ed821b49d9a189c3a0a11228c0de517020feca (diff) | |
download | llvm-a56fa161ab2617fa3aab3f91285fc757b6a8e09b.zip llvm-a56fa161ab2617fa3aab3f91285fc757b6a8e09b.tar.gz llvm-a56fa161ab2617fa3aab3f91285fc757b6a8e09b.tar.bz2 |
[clang-tidy] Fix failing test after #80864 (#81171)
The following test case in
`clang-tools-extra/test/clang-tidy/infrastructure/diagnostic.cpp` is
failing:
```
#ifdef PR64602 // Should not crash
template <class T = void>
struct S
{
auto foo(auto);
};
template <>
auto S<>::foo(auto)
{
return 1;
}
// CHECK8: error: template parameter list matching the non-templated nested type 'S<>' should be empty ('template<>') [clang-diagnostic-error]
#endif
```
#80864 fixes a bug where we would (incorrectly) append invented template
parameters to empty template parameter lists, which causes this test to
fail.
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions