courbet added a comment. I've updated https://github.com/llvm/llvm-project/pull/68572 to do as suggested.
To sum up: we have a new flag `-Wthread-safety-reference-return`, which is on by default under `-Wthread-safety-reference`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D153131/new/ https://reviews.llvm.org/D153131 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits