[llvm-branch-commits] [clang] [FlowSensitive] [PtrCaching] add is[Smart]PointerLikeConstructor (PR #164031)

Florian Mayer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Oct 17 16:16:32 PDT 2025


https://github.com/fmayer updated https://github.com/llvm/llvm-project/pull/164031

>From d6cb62fd95974bcc9a95540cd150bf538434e840 Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Fri, 17 Oct 2025 16:16:20 -0700
Subject: [PATCH] comment

Created using spr 1.3.7
---
 .../clang/Analysis/FlowSensitive/SmartPointerAccessorCaching.h  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clang/include/clang/Analysis/FlowSensitive/SmartPointerAccessorCaching.h b/clang/include/clang/Analysis/FlowSensitive/SmartPointerAccessorCaching.h
index c775d04f0ba8a..03fa05f69ef1d 100644
--- a/clang/include/clang/Analysis/FlowSensitive/SmartPointerAccessorCaching.h
+++ b/clang/include/clang/Analysis/FlowSensitive/SmartPointerAccessorCaching.h
@@ -167,6 +167,8 @@ void transferSmartPointerLikeCachedDeref(
   State.Env.setStorageLocation(*DerefExpr, LocForValue);
 }
 
+// This was introduced after the QualType was added to InitializeLoc, so
+// we don't provide a compatibility wrapper.
 template <typename LatticeT>
 void transferSmartPointerLikeConstructor(
     const CXXConstructExpr *ConstructOperator,



More information about the llvm-branch-commits mailing list