File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -1728,11 +1728,12 @@ class ASTContext : public RefCountedBase<ASTContext> {
17281728 QualType Wrapped, QualType Contained,
17291729 const HLSLAttributedResourceType::Attributes &Attrs);
17301730
1731- QualType getSubstTemplateTypeParmType (
1732- QualType Replacement, Decl *AssociatedDecl, unsigned Index,
1733- std::optional<unsigned > PackIndex,
1734- SubstTemplateTypeParmTypeFlag Flag =
1735- SubstTemplateTypeParmTypeFlag::ExpandPacksInPlace) const ;
1731+ QualType
1732+ getSubstTemplateTypeParmType (QualType Replacement, Decl *AssociatedDecl,
1733+ unsigned Index,
1734+ std::optional<unsigned > PackIndex,
1735+ SubstTemplateTypeParmTypeFlag Flag =
1736+ SubstTemplateTypeParmTypeFlag::None) const ;
17361737 QualType getSubstTemplateTypeParmPackType (Decl *AssociatedDecl,
17371738 unsigned Index, bool Final,
17381739 const TemplateArgument &ArgPack);
Original file line number Diff line number Diff line change @@ -6457,8 +6457,9 @@ class SubstTemplateTypeParmType final
64576457 ID.AddInteger (Index);
64586458 ID.AddInteger (PackIndex ? *PackIndex - 1 : 0 );
64596459 ID.AddInteger (llvm::to_underlying (Flag));
6460- assert (Flag != SubstTemplateTypeParmTypeFlag::ExpandPacksInPlace ||
6461- PackIndex && " ExpandPacksInPlace needs a valid PackIndex" );
6460+ assert ((Flag != SubstTemplateTypeParmTypeFlag::ExpandPacksInPlace ||
6461+ PackIndex) &&
6462+ " ExpandPacksInPlace needs a valid PackIndex" );
64626463 }
64636464
64646465 static bool classof (const Type *T) {
Original file line number Diff line number Diff line change @@ -4206,8 +4206,9 @@ SubstTemplateTypeParmType::SubstTemplateTypeParmType(
42064206 SubstTemplateTypeParmTypeBits.Index = Index;
42074207 SubstTemplateTypeParmTypeBits.PackIndex = PackIndex ? *PackIndex + 1 : 0 ;
42084208 SubstTemplateTypeParmTypeBits.SubstitutionFlag = llvm::to_underlying (Flag);
4209- assert (Flag != SubstTemplateTypeParmTypeFlag::ExpandPacksInPlace ||
4210- PackIndex && " ExpandPacksInPlace needs a valid PackIndex" );
4209+ assert ((Flag != SubstTemplateTypeParmTypeFlag::ExpandPacksInPlace ||
4210+ PackIndex) &&
4211+ " ExpandPacksInPlace needs a valid PackIndex" );
42114212 assert (AssociatedDecl != nullptr );
42124213}
42134214
You can’t perform that action at this time.
0 commit comments