[all-commits] [llvm/llvm-project] 68d83f: [llvm-profdata] Resolve tilde for weighted input f...

Yi Kong via All-commits all-commits at lists.llvm.org
Sat Jun 28 19:37:33 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68d83fae70b2fa136b6c4a8c91af9e615eeedf95
      https://github.com/llvm/llvm-project/commit/68d83fae70b2fa136b6c4a8c91af9e615eeedf95
  Author: Yi Kong <yikong at google.com>
  Date:   2025-06-29 (Sun, 29 Jun 2025)

  Changed paths:
    M llvm/tools/llvm-profdata/llvm-profdata.cpp

  Log Message:
  -----------
  [llvm-profdata] Resolve tilde for weighted input filenames (#146206)

When specifying a weighted input file, the shell does not automatically
expand the tilde (`~`) character in the filename because the argument
is passed as a single string in the format `<weight>,<filename>`.

This commit fixes the issue by using `llvm::sys::fs::expand_tilde` to
explicitly resolve the tilde in the filename, ensuring that paths
like `~/path/to/file` are correctly handled.



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