[Lldb-commits] [lldb] [clang] [clang-tools-extra] [c++20] P1907R1: Support for generalized non-type template arguments of scalar type. (PR #78041)
Andrey Ali Khan Bolshakov via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 24 11:14:20 PST 2024
bolshakov-a wrote:
@erichkeane, @cor3ntin, argument types [here](https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaTemplateDeduction.cpp#L3022) occurs to be different with sugar added to one of them. This patch fixes the problem:
```
--- a/clang/lib/AST/TemplateBase.cpp
+++ b/clang/lib/AST/TemplateBase.cpp
@@ -450,7 +450,7 @@ bool TemplateArgument::structurallyEquals(const TemplateArgument &Other) const {
getAsIntegral() == Other.getAsIntegral();
case StructuralValue: {
- if (getStructuralValueType() != Other.getStructuralValueType())
+ if (getStructuralValueType().getCanonicalType() != Other.getStructuralValueType().getCanonicalType())
return false;
llvm::FoldingSetNodeID A, B;
```
Not sure if it is correct. Running tests...
https://github.com/llvm/llvm-project/pull/78041
More information about the lldb-commits
mailing list