@@ -5794,28 +5794,29 @@ ExprResult Sema::BuildResolvedCallExpr(Expr *Fn, NamedDecl *NDecl,
5794
5794
// CheckBuiltinFunctionCall below just after creation of the call expression.
5795
5795
const FunctionType *FuncT = nullptr;
5796
5796
if (!BuiltinID || !Context.BuiltinInfo.hasCustomTypechecking(BuiltinID)) {
5797
- retry:
5797
+ retry:
5798
5798
if (const PointerType *PT = Fn->getType()->getAs<PointerType>()) {
5799
5799
// C99 6.5.2.2p1 - "The expression that denotes the called function shall
5800
5800
// have type pointer to function".
5801
5801
FuncT = PT->getPointeeType()->getAs<FunctionType>();
5802
5802
if (!FuncT)
5803
5803
return ExprError(Diag(LParenLoc, diag::err_typecheck_call_not_function)
5804
- << Fn->getType() << Fn->getSourceRange());
5804
+ << Fn->getType() << Fn->getSourceRange());
5805
5805
} else if (const BlockPointerType *BPT =
5806
- Fn->getType()->getAs<BlockPointerType>()) {
5806
+ Fn->getType()->getAs<BlockPointerType>()) {
5807
5807
FuncT = BPT->getPointeeType()->castAs<FunctionType>();
5808
5808
} else {
5809
5809
// Handle calls to expressions of unknown-any type.
5810
5810
if (Fn->getType() == Context.UnknownAnyTy) {
5811
5811
ExprResult rewrite = rebuildUnknownAnyFunction(*this, Fn);
5812
- if (rewrite.isInvalid()) return ExprError();
5812
+ if (rewrite.isInvalid())
5813
+ return ExprError();
5813
5814
Fn = rewrite.get();
5814
5815
goto retry;
5815
5816
}
5816
5817
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());
5819
5820
}
5820
5821
}
5821
5822
0 commit comments