aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-11-14 09:32:40 -0800
committerKazu Hirata <kazu@google.com>2021-11-14 09:32:40 -0800
commitd0ac215dd5496a44ce8a6660378ea40a6e1c148d (patch)
tree508a6b1a7df3d0c5065c3f2aba72cc998e8ded10 /clang/lib/CodeGen/CodeGenFunction.h
parent7379736774475e80a58023b95afa8a7cca5f7007 (diff)
downloadllvm-d0ac215dd5496a44ce8a6660378ea40a6e1c148d.zip
llvm-d0ac215dd5496a44ce8a6660378ea40a6e1c148d.tar.gz
llvm-d0ac215dd5496a44ce8a6660378ea40a6e1c148d.tar.bz2
[clang] Use isa instead of dyn_cast (NFC)
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index d5ac17c..ff5b663 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -499,7 +499,7 @@ public:
AbstractCallee(const FunctionDecl *FD) : CalleeDecl(FD) {}
AbstractCallee(const ObjCMethodDecl *OMD) : CalleeDecl(OMD) {}
bool hasFunctionDecl() const {
- return dyn_cast_or_null<FunctionDecl>(CalleeDecl);
+ return isa_and_nonnull<FunctionDecl>(CalleeDecl);
}
const Decl *getDecl() const { return CalleeDecl; }
unsigned getNumParams() const {