https://github.com/efriedma-quic commented:
If I understand correctly, this is just finding any pair of malloc/new that refers to a given variable, and assuming they're related? So, for example, ``` void *p = malloc(8); free(p); p = malloc(8); new (p) long(10); ``` The first malloc gets the token, the second one doesn't? The whole approach feels really weird, but it might be hard to do better, I guess. https://github.com/llvm/llvm-project/pull/241548 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
