[llvm-branch-commits] [llvm] [BOLT] Fix thread-safety of PointerAuthCFIAnalyzer (PR #165365)

Peter Waller via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 28 03:55:45 PDT 2025


================
@@ -47,6 +47,7 @@ bool PointerAuthCFIAnalyzer::runOnFunction(BinaryFunction &BF) {
         // Not all functions have .cfi_negate_ra_state in them. But if one does,
         // we expect psign/pauth instructions to have the hasNegateRAState
         // annotation.
+        std::lock_guard<std::mutex> Lock(IgnoreMutex);
----------------
peterwaller-arm wrote:

Consistency nit: the other uses of this put the lock/ignore below the log message and next to the return.

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


More information about the llvm-branch-commits mailing list