[all-commits] [llvm/llvm-project] bfe63a: Thread safety analysis: Support builtin pointer-to...

Aaron Puchert via All-commits all-commits at lists.llvm.org
Thu Jul 14 04:38:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bfe63ab63e22b61bd5898c65425e8ebe43189913
      https://github.com/llvm/llvm-project/commit/bfe63ab63e22b61bd5898c65425e8ebe43189913
  Author: Aaron Puchert <aaron.puchert at sap.com>
  Date:   2022-07-14 (Thu, 14 Jul 2022)

  Changed paths:
    M clang/lib/Analysis/ThreadSafety.cpp
    M clang/test/SemaCXX/warn-thread-safety-analysis.cpp

  Log Message:
  -----------
  Thread safety analysis: Support builtin pointer-to-member operators

We consider an access to x.*pm as access of the same kind into x, and
an access to px->*pm as access of the same kind into *px. Previously we
missed reads and writes in the .* case, and operations to the pointed-to
data for ->* (we didn't miss accesses to the pointer itself, because
that requires an LValueToRValue cast that we treat independently).

We added support for overloaded operator->* in D124966.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D129514


  Commit: e0c66c699eb000f604e24b1c4e73b899b4d942d3
      https://github.com/llvm/llvm-project/commit/e0c66c699eb000f604e24b1c4e73b899b4d942d3
  Author: Aaron Puchert <aaron.puchert at sap.com>
  Date:   2022-07-14 (Thu, 14 Jul 2022)

  Changed paths:
    M clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h

  Log Message:
  -----------
  Thread safety analysis: Don't erase TIL_Opcode type (NFC)

This is mainly for debugging, but it also eliminates some casts.


Compare: https://github.com/llvm/llvm-project/compare/18a6ab5b8d1f...e0c66c699eb0


More information about the All-commits mailing list