Skip to content

Commit 38e5878

Browse files
authored
[profcheck][test] Use quotes for when not using the internal lit shell (#170873)
Using `-passes=function(prof-inject),module(prof-verify)` needs to be quoted when using a non-lit shell. Fixes tests in 4b42944 when not using lit's shell
1 parent 41f00cb commit 38e5878

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/test/Transforms/PGOProfile/prof-verify-known-cold.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; Test prof-verify for functions explicitly marked as cold
22

3-
; RUN: opt -passes=function(prof-inject),module(prof-verify) %s -o - 2>&1 | FileCheck %s
3+
; RUN: opt -passes='function(prof-inject),module(prof-verify)' %s -o - 2>&1 | FileCheck %s
44

55
define void @foo(i32 %i) !prof !0 {
66
%c = icmp eq i32 %i, 0

llvm/test/Transforms/PGOProfile/prof-verify.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
; RUN: opt -passes=prof-inject %s -S -o - | FileCheck %s --check-prefix=INJECT
88
; RUN: not opt -passes=prof-verify %s -S -o - 2>&1 | FileCheck %s --check-prefix=VERIFY
9-
; RUN: opt -passes=function(prof-inject),module(prof-verify) %s --disable-output
9+
; RUN: opt -passes='function(prof-inject),module(prof-verify)' %s --disable-output
1010
; RUN: opt -enable-profcheck %s -S -o - | FileCheck %s --check-prefix=INJECT
1111

1212
define void @foo(i32 %i) !prof !0 {

0 commit comments

Comments
 (0)