Skip to content

Commit 9f935ab

Browse files
committed
Remove unnecessary code
1 parent 2e9061b commit 9f935ab

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

clang/lib/Sema/SemaTemplateInstantiate.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,11 +1364,10 @@ namespace {
13641364

13651365
private:
13661366
bool isSubstitutingConstraints() const {
1367-
return llvm::any_of(
1368-
llvm::reverse(SemaRef.CodeSynthesisContexts), [](auto &Context) {
1369-
return Context.Kind ==
1370-
Sema::CodeSynthesisContext::ConstraintSubstitution;
1371-
});
1367+
return llvm::any_of(SemaRef.CodeSynthesisContexts, [](auto &Context) {
1368+
return Context.Kind ==
1369+
Sema::CodeSynthesisContext::ConstraintSubstitution;
1370+
});
13721371
}
13731372

13741373
// CWG2770: Function parameters should be instantiated when they are
@@ -1389,7 +1388,9 @@ namespace {
13891388
void setEvaluateConstraints(bool B) {
13901389
EvaluateConstraints = B;
13911390
}
1392-
bool getEvaluateConstraints() const { return EvaluateConstraints; }
1391+
bool getEvaluateConstraints() const {
1392+
return EvaluateConstraints;
1393+
}
13931394

13941395
/// Determine whether the given type \p T has already been
13951396
/// transformed.

0 commit comments

Comments
 (0)