[clang] [Driver][HIP/SPIRV] Fix crash when llvm-link is executed. (PR #196074)

Manuel Carrasco via cfe-commits cfe-commits at lists.llvm.org
Wed May 6 07:52:51 PDT 2026


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

ty. done

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


More information about the cfe-commits mailing list