From 33f1b6aba122aa17ee1f98392dc3d3f773882eff Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Tue, 21 Jul 2026 16:51:09 -0700 Subject: [PATCH] [Driver][NFC] Update clang-linker-wrapper test comments. Addresses code review feedback from https://github.com/intel/llvm/pull/22694#pullrequestreview-4749812555. --- clang/test/Driver/clang-linker-wrapper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/test/Driver/clang-linker-wrapper.cpp b/clang/test/Driver/clang-linker-wrapper.cpp index 3cbce26b87a5b..9c20a19601bee 100644 --- a/clang/test/Driver/clang-linker-wrapper.cpp +++ b/clang/test/Driver/clang-linker-wrapper.cpp @@ -132,9 +132,9 @@ // must be supplied as separate occurrences) is reconstructed correctly in // the ocloc invocation. // RUN: clang-linker-wrapper --device-linker=spir64_gen-unknown-unknown=-device --device-linker=spir64_gen-unknown-unknown=pvc --linker-path=/usr/bin/ld -o /dev/null %t1.o --dry-run 2>&1 | FileCheck -check-prefix=CHK-NO-CMDS-AOT-GEN-LINKERARG %s -// Check that the "-device" supplied via --device-linker= is detected, so the -// target is not also passed to sycl-post-link for filtering (no -// "intel_gpu_pvc," prefix on the -o argument). +// Check that the device supplied via '--device-linker=' is correctly detected. +// This prevents the target from being redundantly passed to sycl-post-link +// for filtering, which would add an 'intel_gpu_pvc,' prefix to the -o argument. // CHK-NO-CMDS-AOT-GEN-LINKERARG: sycl-post-link{{.*}} -o {{[^,]*}}.table {{.*}}.bc // CHK-NO-CMDS-AOT-GEN-LINKERARG: ocloc{{.*}} -device pvc -output