================ @@ -3156,8 +3156,8 @@ void MallocChecker::checkPreCall(const CallEvent &Call, for (unsigned I = 0, E = Call.getNumArgs(); I != E; ++I) { SVal ArgSVal = Call.getArgSVal(I); if (isa<Loc>(ArgSVal)) { - SymbolRef Sym = ArgSVal.getAsSymbol(); - if (!Sym) + SymbolRef Sym = ArgSVal.getAsSymbol(/*IncludeBaseRegions=*/true); + if (!Sym) ---------------- steakhal wrote:
```suggestion if (!Sym) ``` https://github.com/llvm/llvm-project/pull/152462 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits