Skip to content

Commit fe4d5f1

Browse files
committed
remove braces for simple if
1 parent fd03551 commit fe4d5f1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

clang/lib/Sema/SemaTemplateDeduction.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3574,18 +3574,16 @@ static Sema::TemplateDeductionResult instantiateExplicitSpecifierDeferred(
35743574

35753575
ExplicitSpecifier ES = GetExplicitSpecifier(Specialization);
35763576
Expr *const Expr = ES.getExpr();
3577-
if (!Expr) {
3577+
if (!Expr)
35783578
return Sema::TDK_Success;
3579-
}
3580-
if (!Expr->isValueDependent()) {
3579+
if (!Expr->isValueDependent())
35813580
return Sema::TDK_Success;
3582-
}
3581+
35833582
Sema::InstantiatingTemplate Inst(
35843583
S, Info.getLocation(), FunctionTemplate, DeducedArgs,
35853584
Sema::CodeSynthesisContext::DeducedTemplateArgumentSubstitution, Info);
3586-
if (Inst.isInvalid()) {
3585+
if (Inst.isInvalid())
35873586
return Sema::TDK_InstantiationDepth;
3588-
}
35893587
Sema::SFINAETrap Trap(S);
35903588
const auto Instantiated = S.instantiateExplicitSpecifier(SubstArgs, ES);
35913589
if (Instantiated.isInvalid() || Trap.hasErrorOccurred()) {

0 commit comments

Comments
 (0)