[clang] [Thread Safety Analysis] Fix a bug of context saving in alias-analysis (PR #178825)

Marco Elver via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 31 08:13:37 PST 2026


================
@@ -7434,6 +7434,17 @@ void testPointerAliasEscapeAndReset(Foo *f) {
   ptr->mu.Unlock();
 }
 
+// A function that may do anything to the objects referred to by the inputs.
+void escapeAliasMultiple(void *, void *, void *);
+void testPointerAliasEscapeMultiple(Foo *F)
+{
----------------
melver wrote:

nit: Brace on previous line

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


More information about the cfe-commits mailing list