[PATCH] D66045: Improve detection of same value in comparisons
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 16 16:37:46 PDT 2019
NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.
Thanks from me as well.
================
Comment at: lib/AST/Expr.cpp:4009
+ auto getAnyDecl = [](const Expr *E) -> const ValueDecl * {
+ if (auto *DRE = dyn_cast<DeclRefExpr>(E))
+ return DRE->getDecl();
----------------
`const auto *`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66045/new/
https://reviews.llvm.org/D66045
More information about the cfe-commits
mailing list