[clang] [Driver][LTO] Copy fix empty stats filename to AMDGPU, HIPAMD, MinGW (PR #74178)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 9 11:14:46 PST 2023
MaskRay wrote:
We should change `addLTSOption` and let it perform:
```
auto Input = llvm::find_if(
Inputs, [](const InputInfo &II) -> bool { return II.isFilename(); });
if (Input == Inputs.end())
// For a very rare case, all of the inputs to the linker are
// InputArg. If that happens, just use the first InputInfo.
Input = Inputs.begin();
```
https://github.com/llvm/llvm-project/pull/74178
More information about the cfe-commits
mailing list