[all-commits] [llvm/llvm-project] e433fc: [NFC] Add error checking for InlinedAts.

Shubham Sandeep Rastogi via All-commits all-commits at lists.llvm.org
Tue Feb 4 18:46:25 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e433fc3ce3155860e5f07c8bbc790b117a45e33f
      https://github.com/llvm/llvm-project/commit/e433fc3ce3155860e5f07c8bbc790b117a45e33f
  Author: Shubham Sandeep Rastogi <srastogi22 at apple.com>
  Date:   2025-02-04 (Tue, 04 Feb 2025)

  Changed paths:
    M llvm/include/llvm/Passes/DroppedVariableStats.h

  Log Message:
  -----------
  [NFC] Add error checking for InlinedAts.

The DroppedVariableStats::calculateDroppedStatsAndPrint should check if
it's InlinedAts stack contains the the function name that is being
accessed to make sure that a pass did not create a new function
declaration which may then lead to a crash. For example, in hot-cold
splitting, the Module before the pass will not contain the newly created
cold function and can cause a crash when trying to access the InlinedAts
stack with the function name of the newly created cold function.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list