Skip to content

Commit a1c9f84

Browse files
committed
Minor cleanup
1 parent c067cce commit a1c9f84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7012,9 +7012,6 @@ static void handleModularFormat(Sema &S, Decl *D, const ParsedAttr &AL) {
70127012
Aspects.push_back(Aspect);
70137013
}
70147014

7015-
if (HasDuplicate)
7016-
return;
7017-
70187015
// Store aspects sorted.
70197016
llvm::sort(Aspects);
70207017

@@ -7028,6 +7025,9 @@ static void handleModularFormat(Sema &S, Decl *D, const ParsedAttr &AL) {
70287025
D->dropAttr<ModularFormatAttr>();
70297026
}
70307027

7028+
if (HasDuplicate)
7029+
return;
7030+
70317031
D->addAttr(::new (S.Context) ModularFormatAttr(
70327032
S.Context, AL, ModularImplFn, ImplName, Aspects.data(), Aspects.size()));
70337033
}

0 commit comments

Comments
 (0)