[all-commits] [llvm/llvm-project] 5d16a1: [Metadata] Return the valid DebugLoc if one of the...

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Fri May 2 09:37:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d16a18c4bd0fed88086bc1e93e6fb6f1be4caab
      https://github.com/llvm/llvm-project/commit/5d16a18c4bd0fed88086bc1e93e6fb6f1be4caab
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2025-05-02 (Fri, 02 May 2025)

  Changed paths:
    M llvm/lib/IR/DebugInfoMetadata.cpp
    M llvm/unittests/IR/MetadataTest.cpp

  Log Message:
  -----------
  [Metadata] Return the valid DebugLoc if one of them is null with -pick-merged-source-locations. (#138148)

Previously when getMergedLocation was passed nullptr as one of the
parameters we returned nullptr. Change that behaviour to instead return
a valid DebugLoc. This is beneficial for binaries from which SamplePGO
profiles are obtained.



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