================
@@ -199,8 +199,8 @@ class VarUseCollector : public DynamicRecursiveASTVisitor {
bool VisitDeclRefExpr(DeclRefExpr *DRE) override {
if (const auto *VarD = dyn_cast<VarDecl>(DRE->getDecl());
- VarD && (!shouldIgnoreRef(DRE, Node->getDecl()) &&
- (VarD->hasGlobalStorage() || VarD->isStaticLocal())))
+ VarD && VarD->hasGlobalStorage() &&
----------------
daniel-petrovic wrote:
the condition is not the same - why can `VarD->isStaticLocal()` be ignored now ?
https://github.com/llvm/llvm-project/pull/224243
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits