We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2021962 commit 6b59c7aCopy full SHA for 6b59c7a
clang/lib/Serialization/ASTReaderDecl.cpp
@@ -2663,11 +2663,8 @@ void ASTDeclReader::VisitTemplateTypeParmDecl(TemplateTypeParmDecl *D) {
2663
2664
D->setDeclaredWithTypename(Record.readInt());
2665
2666
- bool TypeConstraintInitialized = false;
2667
- if (D->hasTypeConstraint())
2668
- TypeConstraintInitialized = Record.readBool();
2669
-
2670
- if (D->hasTypeConstraint() && TypeConstraintInitialized) {
+ bool TypeConstraintInitialized = D->hasTypeConstraint() && Record.readBool();
+ if (TypeConstraintInitialized) {
2671
ConceptReference *CR = nullptr;
2672
if (Record.readBool())
2673
CR = Record.readConceptReference();
0 commit comments