From: Simon Pilgrim Date: Thu, 12 Mar 2020 14:32:33 +0000 (+0000) Subject: Fix static analyzer null dereference warning. NFCI. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbde39e485b5c00b9ad809d169e1650aa2104114;p=platform%2Fupstream%2Fllvm.git Fix static analyzer null dereference warning. NFCI. --- diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp index 58e7e16..3645169 100644 --- a/clang/lib/AST/DeclCXX.cpp +++ b/clang/lib/AST/DeclCXX.cpp @@ -3096,7 +3096,7 @@ VarDecl *BindingDecl::getHoldingVar() const { if (!DRE) return nullptr; - auto *VD = dyn_cast(DRE->getDecl()); + auto *VD = cast(DRE->getDecl()); assert(VD->isImplicit() && "holding var for binding decl not implicit"); return VD; }