[all-commits] [llvm/llvm-project] a4cc7e: [PGO] Avoid potential const_cast UB (NFC)

Christian Ulmann via All-commits all-commits at lists.llvm.org
Tue May 2 02:22:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4cc7e784f9333baf0f355affca4cc31cacc2a5b
      https://github.com/llvm/llvm-project/commit/a4cc7e784f9333baf0f355affca4cc31cacc2a5b
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

  Log Message:
  -----------
  [PGO] Avoid potential const_cast UB (NFC)

This commit removes potential UB in the PGO instrumentation passes that
was caused by casting away constness and then potentially modifying the
object.

Reviewed By: gysit

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




More information about the All-commits mailing list