[clang] [StaticAnalyzer] Fix InnerPointerBRVisitor to avoid repeated map scans (PR #185796)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 11 03:39:34 PDT 2026


================
@@ -59,9 +59,19 @@ class InnerPointerChecker
 public:
   class InnerPointerBRVisitor : public BugReporterVisitor {
     SymbolRef PtrToBuf;
+    const MemRegion *ContainerRegion;
----------------
steakhal wrote:

I wish this was const.

```suggestion
    const MemRegion *const ContainerRegion;
```

https://github.com/llvm/llvm-project/pull/185796


More information about the cfe-commits mailing list