Skip to content

Commit 67d1f8a

Browse files
committed
clang-format a block; NFC
The indentation of the return here was off, and confusing as a result. Cleaned up a bit extra while I was in the area. llvm-svn: 364104
1 parent 979ae80 commit 67d1f8a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5794,28 +5794,29 @@ ExprResult Sema::BuildResolvedCallExpr(Expr *Fn, NamedDecl *NDecl,
57945794
// CheckBuiltinFunctionCall below just after creation of the call expression.
57955795
const FunctionType *FuncT = nullptr;
57965796
if (!BuiltinID || !Context.BuiltinInfo.hasCustomTypechecking(BuiltinID)) {
5797-
retry:
5797+
retry:
57985798
if (const PointerType *PT = Fn->getType()->getAs<PointerType>()) {
57995799
// C99 6.5.2.2p1 - "The expression that denotes the called function shall
58005800
// have type pointer to function".
58015801
FuncT = PT->getPointeeType()->getAs<FunctionType>();
58025802
if (!FuncT)
58035803
return ExprError(Diag(LParenLoc, diag::err_typecheck_call_not_function)
5804-
<< Fn->getType() << Fn->getSourceRange());
5804+
<< Fn->getType() << Fn->getSourceRange());
58055805
} else if (const BlockPointerType *BPT =
5806-
Fn->getType()->getAs<BlockPointerType>()) {
5806+
Fn->getType()->getAs<BlockPointerType>()) {
58075807
FuncT = BPT->getPointeeType()->castAs<FunctionType>();
58085808
} else {
58095809
// Handle calls to expressions of unknown-any type.
58105810
if (Fn->getType() == Context.UnknownAnyTy) {
58115811
ExprResult rewrite = rebuildUnknownAnyFunction(*this, Fn);
5812-
if (rewrite.isInvalid()) return ExprError();
5812+
if (rewrite.isInvalid())
5813+
return ExprError();
58135814
Fn = rewrite.get();
58145815
goto retry;
58155816
}
58165817

5817-
return ExprError(Diag(LParenLoc, diag::err_typecheck_call_not_function)
5818-
<< Fn->getType() << Fn->getSourceRange());
5818+
return ExprError(Diag(LParenLoc, diag::err_typecheck_call_not_function)
5819+
<< Fn->getType() << Fn->getSourceRange());
58195820
}
58205821
}
58215822

0 commit comments

Comments
 (0)