Skip to content

Commit 4bdd30e

Browse files
committed
Less auto.
1 parent ebde49b commit 4bdd30e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6662,8 +6662,8 @@ ExprResult Sema::BuildCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc,
66626662
auto *FD = cast<FunctionDecl>(Fn->getReferencedDeclOfCallee());
66636663

66646664
if (FD->getName() == "__builtin_amdgcn_is_invocable") {
6665-
auto FnPtrTy = Context.getPointerType(FD->getType());
6666-
auto *R = ImpCastExprToType(Fn, FnPtrTy, CK_BuiltinFnToFnPtr).get();
6665+
QualType FnPtrTy = Context.getPointerType(FD->getType());
6666+
Expr *R = ImpCastExprToType(Fn, FnPtrTy, CK_BuiltinFnToFnPtr).get();
66676667
return CallExpr::Create(
66686668
Context, R, ArgExprs, Context.AMDGPUFeaturePredicateTy,
66696669
ExprValueKind::VK_PRValue, RParenLoc, FPOptionsOverride());

0 commit comments

Comments
 (0)