================
@@ -932,6 +932,21 @@ void FactsGenerator::handleExitBlock() {
       ThisOrigins && !IsDestructor)
     EscapesInCurrentBlock.push_back(FactMgr.createFact<ThisEscapeFact>(
         (*ThisOrigins)->getOuterOriginID(), AC.getDecl()->getEndLoc()));
+
+  // Storage reachable through a reference parameter, i.e. every origin of the
+  // parameter but the outermost, is visible to the caller. A pointer parameter
+  // can be pointed at local storage, so stores through it are not necessarily
+  // visible to the caller.
----------------
NeKon69 wrote:

Oh I see. Is the reason for this the fact that we can't model things like `*p = 
q` correctly? And there isn't really a way to work through this without fixing 
that issue?

https://github.com/llvm/llvm-project/pull/243890
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to