[clang] [HIP] Check if Input is a file before constructing link job (PR #183492)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 26 06:57:05 PST 2026


================
@@ -39,8 +39,11 @@ void AMDGCN::Linker::constructLLVMLinkCommand(
 
   ArgStringList LinkerInputs;
 
-  for (auto Input : Inputs)
+  for (auto Input : Inputs) {
+    if (!Input.isFilename())
----------------
jhuber6 wrote:

I think the more correct fix is https://github.com/llvm/llvm-project/pull/183529

https://github.com/llvm/llvm-project/pull/183492


More information about the cfe-commits mailing list