[clang] [Serialization] Handle uninitialized type constraints (PR #110496)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 7 06:20:44 PDT 2024
================
@@ -2674,7 +2674,7 @@ void ASTDeclReader::VisitTemplateTypeParmDecl(TemplateTypeParmDecl *D) {
D->setDeclaredWithTypename(Record.readInt());
- if (D->hasTypeConstraint()) {
+ if (Record.readBool() && D->hasTypeConstraint()) {
----------------
cor3ntin wrote:
Can you put that bool in a variable? It would be more clear what it is
https://github.com/llvm/llvm-project/pull/110496
More information about the cfe-commits
mailing list