It's going to become a bit more complicated, so let's have it separate.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Analysis/ThreadSafety.cpp | ||
---|---|---|
2199 | The old code was looking at LDat1.kind() != LK_Exclusive -- any reason this isn't A.kind() != LK_Exclusive as well? |
clang/lib/Analysis/ThreadSafety.cpp | ||
---|---|---|
2199 | Given that both should be equivalent (knowing A.kind() != B.kind() and that there are just two kinds), I thought this condition fits better to the comment: we select the lock that's exclusive, instead of not selecting the lock that's not exclusive. But I don't have a problem with A.kind() != LK_Exclusive if that sounds more natural to you. |
LGTM!
clang/lib/Analysis/ThreadSafety.cpp | ||
---|---|---|
2199 | Oohhhh, derp. I was forgetting that there were only two kinds. This looks fine to me, thanks! |
The old code was looking at LDat1.kind() != LK_Exclusive -- any reason this isn't A.kind() != LK_Exclusive as well?