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

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Thu May 1 08:21:09 PDT 2025


  Branch: refs/heads/users/snehasish/debug-metadata
  Home:   https://github.com/llvm/llvm-project
  Commit: a37c5ea512677523bb6e0ee36bee094da1095f5c
      https://github.com/llvm/llvm-project/commit/a37c5ea512677523bb6e0ee36bee094da1095f5c
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2025-04-30 (Wed, 30 Apr 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.

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