diff options
author | Marco Elver <elver@google.com> | 2025-06-05 16:05:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-05 16:05:59 +0200 |
commit | 2d7f53bc27c345b844013b0a64040119bd362e51 (patch) | |
tree | 0ab155036e25fc9e05b3a9492bcd9ed9f600872e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 9fba20bfacc878bc89b89c1ff44805c5f8a142df (diff) | |
download | llvm-2d7f53bc27c345b844013b0a64040119bd362e51.zip llvm-2d7f53bc27c345b844013b0a64040119bd362e51.tar.gz llvm-2d7f53bc27c345b844013b0a64040119bd362e51.tar.bz2 |
Thread Safety Analysis: Use replaceLock instead of removeLock+addLock (#141500)
In ScopedLockableFactEntry::unlock(), we can avoid a second search,
pop_back(), and push_back() if we use the already obtained iterator into
the FactSet to replace the old FactEntry and take its position in the
vector.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions