Skip to content

Commit

Permalink
Fix static analyzer null dereference warning. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Mar 12, 2020
1 parent 5f9fcfb commit dbde39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/DeclCXX.cpp
Expand Up @@ -3096,7 +3096,7 @@ VarDecl *BindingDecl::getHoldingVar() const {
if (!DRE)
return nullptr;

auto *VD = dyn_cast<VarDecl>(DRE->getDecl());
auto *VD = cast<VarDecl>(DRE->getDecl());
assert(VD->isImplicit() && "holding var for binding decl not implicit");
return VD;
}
Expand Down

0 comments on commit dbde39e

Please sign in to comment.