Skip to content

Commit 786d7bd

Browse files
Change order of const
1 parent 5bf0d70 commit 786d7bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/DeclTemplate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ NonTypeTemplateParmDecl *NonTypeTemplateParmDecl::Create(
786786
QualType T, bool ParameterPack, TypeSourceInfo *TInfo) {
787787
AutoType *AT =
788788
C.getLangOpts().CPlusPlus20 ? T->getContainedAutoType() : nullptr;
789-
bool const HasConstraint = AT && AT->isConstrained();
789+
const bool HasConstraint = AT && AT->isConstrained();
790790
auto *NTTP =
791791
new (C, DC,
792792
additionalSizeToAlloc<std::pair<QualType, TypeSourceInfo *>, Expr *>(

0 commit comments

Comments
 (0)