Thread safety analysis: Nullability improvements in TIL, NFCI
authorAaron Puchert <aaronpuchert@alice-dsl.net>
Sat, 25 Jul 2020 23:53:32 +0000 (01:53 +0200)
committerAaron Puchert <aaronpuchert@alice-dsl.net>
Sun, 25 Oct 2020 18:37:16 +0000 (19:37 +0100)
commitb296c64e64a0bc600538c8bc67d4ccc2564e3c72
treeb8de96dadf68510d2df62d19fe939990298a7b61
parent5250a03a9959c2701a8338fe1a1ffa8bd93d6173
Thread safety analysis: Nullability improvements in TIL, NFCI

The constructor of Project asserts that the contained ValueDecl is not
null, use that in the ThreadSafetyAnalyzer. In the case of LiteralPtr
it's the other way around.

Also dyn_cast<> is sufficient if we know something isn't null.
clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h
clang/lib/Analysis/ThreadSafety.cpp
clang/lib/Analysis/ThreadSafetyCommon.cpp