[all-commits] [llvm/llvm-project] b296c6: Thread safety analysis: Nullability improvements i...

Aaron Puchert via All-commits all-commits at lists.llvm.org
Sun Oct 25 11:37:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b296c64e64a0bc600538c8bc67d4ccc2564e3c72
      https://github.com/llvm/llvm-project/commit/b296c64e64a0bc600538c8bc67d4ccc2564e3c72
  Author: Aaron Puchert <aaronpuchert at alice-dsl.net>
  Date:   2020-10-25 (Sun, 25 Oct 2020)

  Changed paths:
    M clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h
    M clang/lib/Analysis/ThreadSafety.cpp
    M clang/lib/Analysis/ThreadSafetyCommon.cpp

  Log Message:
  -----------
  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.




More information about the All-commits mailing list