diff options
author | Kazu Hirata <kazu@google.com> | 2021-11-14 09:32:40 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-11-14 09:32:40 -0800 |
commit | d0ac215dd5496a44ce8a6660378ea40a6e1c148d (patch) | |
tree | 508a6b1a7df3d0c5065c3f2aba72cc998e8ded10 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 7379736774475e80a58023b95afa8a7cca5f7007 (diff) | |
download | llvm-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.h | 2 |
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 { |