[all-commits] [llvm/llvm-project] 572fe0: Thread safety analysis: Simplify intersectAndWarn ...
Aaron Puchert via All-commits
all-commits at lists.llvm.org
Fri Apr 23 14:21:33 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 572fe087765626529d63eaaefb2e1c5ba277f756
https://github.com/llvm/llvm-project/commit/572fe087765626529d63eaaefb2e1c5ba277f756
Author: Aaron Puchert <aaron.puchert at sap.com>
Date: 2021-04-23 (Fri, 23 Apr 2021)
Changed paths:
M clang/lib/Analysis/ThreadSafety.cpp
Log Message:
-----------
Thread safety analysis: Simplify intersectAndWarn (NFC)
Instead of conditionally overwriting a nullptr and then branching on its
nullness, just branch directly on the original condition. Then we can
make both pointers (non-null) references instead.
More information about the All-commits
mailing list