Skip to content

Commit 5bb112f

Browse files
committed
[NFC][OpenACC] Fix unused variable warning from df1e102
Looks like I did a dyn_cast when all I needed was an isa! This patch fixes that up.
1 parent 78281fd commit 5bb112f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaOpenACC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ ExprResult SemaOpenACC::ActOnRoutineName(Expr *RoutineName) {
14971497
} else if (const auto *DRE = dyn_cast<DeclRefExpr>(RoutineName)) {
14981498
const ValueDecl *VD = DRE->getDecl();
14991499

1500-
if (const auto *FD = dyn_cast<FunctionDecl>(VD))
1500+
if (isa<FunctionDecl>(VD))
15011501
return RoutineName;
15021502

15031503
// Allow lambdas.

0 commit comments

Comments
 (0)