[all-commits] [llvm/llvm-project] 85451f: [Clang][Driver][LTO] Fix empty stats filename when...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Sun Nov 5 11:31:39 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85451f486d8144f8aacd94a47802c77da5a04d27
      https://github.com/llvm/llvm-project/commit/85451f486d8144f8aacd94a47802c77da5a04d27
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2023-11-05 (Sun, 05 Nov 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/test/Driver/save-stats.c

  Log Message:
  -----------
  [Clang][Driver][LTO] Fix empty stats filename when in LTO mode (#71197)

Previously, if a linker argument (i.e. -Wl) is presented before any input
filenames, Gnu driver would use the InputInfo object of that argument to generate stats filename for LTO backend, causing an empty filename. This patch fixes such issue.




More information about the All-commits mailing list