aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorcor3ntin <corentinjabot@gmail.com>2024-04-29 22:11:09 +0200
committerGitHub <noreply@github.com>2024-04-29 22:11:09 +0200
commit326657f5679889e3374354ba3243e27bda2080f4 (patch)
tree7d52e158eda2734d48ee00dae9c2658e759dd03c /clang/lib/AST/DeclBase.cpp
parent359ab3aebba302fb4c37373b9907bc8880be7363 (diff)
downloadllvm-326657f5679889e3374354ba3243e27bda2080f4.zip
llvm-326657f5679889e3374354ba3243e27bda2080f4.tar.gz
llvm-326657f5679889e3374354ba3243e27bda2080f4.tar.bz2
[Clang] Address post commit feedbacks in #89906 (#90495)
* Fix a leak * Fix a maybe unused warning * Fix incorrect cxx_status entry
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index f341c74..03e1055 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -1115,7 +1115,7 @@ int64_t Decl::getID() const {
const FunctionType *Decl::getFunctionType(bool BlocksToo) const {
QualType Ty;
- if (const auto *D = dyn_cast<BindingDecl>(this))
+ if (isa<BindingDecl>(this))
return nullptr;
else if (const auto *D = dyn_cast<ValueDecl>(this))
Ty = D->getType();