[all-commits] [llvm/llvm-project] 1b6340: [Debugify] applyDebugify - remove unnecessary defa...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Feb 14 02:20:12 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b6340d9c3b75c29dec5218dbab2bb8194edfc1e
      https://github.com/llvm/llvm-project/commit/1b6340d9c3b75c29dec5218dbab2bb8194edfc1e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-02-14 (Fri, 14 Feb 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/Debugify.cpp

  Log Message:
  -----------
  [Debugify] applyDebugify - remove unnecessary defaults arg values and assert dereferencable values (#127186)

The applyDebugify helpers were providing default arguments despite all callers providing them, so strip them for clarity.

The Function variant was asserting that DebugInfoBeforePass was non-null before dereferencing so I've added an equivalent assert to the Method variant as well.

Fixes #97626



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