Skip to content

Commit b6d1577

Browse files
authored
[PGO] Fix instrprof-api.c on Windows (#77508)
#76471 introduced a new test but the check lines have over-restrictive patterns for a string variable name that cause test failures on Windows (e.g. https://lab.llvm.org/buildbot/#/builders/127/builds/60637/steps/4/logs/stdio). This PR fixes the test.
1 parent 7e956ca commit b6d1577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/profile/instrprof-api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ int foo() {
2929
int main() {
3030
int z = foo() + 3;
3131
__llvm_profile_set_filename("rawprof.profraw");
32-
// PROFGEN: call void @__llvm_profile_set_filename(ptr noundef @.str)
33-
// PROFUSE-NOT: call void @__llvm_profile_set_filename(ptr noundef @.str)
32+
// PROFGEN: call void @__llvm_profile_set_filename(ptr noundef @{{.*}})
33+
// PROFUSE-NOT: call void @__llvm_profile_set_filename(ptr noundef @{{.*}})
3434
if (__llvm_profile_dump())
3535
return 2;
3636
// PROFGEN: %call1 = call {{(signext )*}}i32 @__llvm_profile_dump()

0 commit comments

Comments
 (0)