[clang] Minor fix of reproducer in #165572 (PR #168751)

via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 19 10:42:47 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver

@llvm/pr-subscribers-clang

Author: Walter Lee (googlewalt)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/168751.diff


1 Files Affected:

- (modified) clang/test/Driver/crash-ir-repro.cpp (+1-2) 


``````````diff
diff --git a/clang/test/Driver/crash-ir-repro.cpp b/clang/test/Driver/crash-ir-repro.cpp
index 1f31a5ca1bb34..fd97e6f0cce11 100644
--- a/clang/test/Driver/crash-ir-repro.cpp
+++ b/clang/test/Driver/crash-ir-repro.cpp
@@ -1,9 +1,8 @@
 // RUN: %clang -S -emit-llvm -o %t.ll %s
-// RUN: not %clang -S -DCRASH %s %t.ll 2>&1 | FileCheck %s
+// RUN: not %clang -S -DCRASH %s -o %t.ll 2>&1 | FileCheck %s
 
 // CHECK: Preprocessed source(s) and associated run script(s) are located at:
 // CHECK-NEXT: clang: note: diagnostic msg: {{.*}}.cpp
-// CHECK-NEXT: clang: note: diagnostic msg: {{.*}}.ll
 // CHECK-NEXT: clang: note: diagnostic msg: {{.*}}.sh
 
 #ifdef CRASH

``````````

</details>


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


More information about the cfe-commits mailing list