aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2021-03-01 11:04:01 -0800
committerVedant Kumar <vsk@apple.com>2021-03-01 11:06:38 -0800
commit8f7dc9964752fa7ba703a6682314a79b4df849dd (patch)
treee55f028e5b0a0610868354d68743640632b1a800
parentea7f211b2e6cbb49f178ec9ba085a4958d33cdea (diff)
downloadllvm-8f7dc9964752fa7ba703a6682314a79b4df849dd.zip
llvm-8f7dc9964752fa7ba703a6682314a79b4df849dd.tar.gz
llvm-8f7dc9964752fa7ba703a6682314a79b4df849dd.tar.bz2
[test/profile] Pass -w to suppress suggestion to use fopen_s
-rw-r--r--compiler-rt/test/profile/instrprof-write-buffer-internal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/test/profile/instrprof-write-buffer-internal.c b/compiler-rt/test/profile/instrprof-write-buffer-internal.c
index 7003e635..a0d699d 100644
--- a/compiler-rt/test/profile/instrprof-write-buffer-internal.c
+++ b/compiler-rt/test/profile/instrprof-write-buffer-internal.c
@@ -1,5 +1,5 @@
// RUN: rm -f %t.buf.profraw %t.profraw
-// RUN: %clang_profgen -o %t %s
+// RUN: %clang_profgen -w -o %t %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t %t.buf.profraw
// RUN: llvm-profdata show %t.buf.profraw | FileCheck %s -check-prefix=WRITE-BUFFER
// RUN: not llvm-profdata show %t.profraw 2>&1 | FileCheck %s -check-prefix=ALREADY-DUMPED
@@ -43,9 +43,9 @@ int main(int argc, const char *argv[]) {
char *buf = malloc(bufsize);
int ret = __llvm_profile_write_buffer_internal(buf,
- __llvm_profile_begin_data(), __llvm_profile_end_data(),
- __llvm_profile_begin_counters(), __llvm_profile_end_counters(),
- __llvm_profile_begin_names(), __llvm_profile_end_names());
+ __llvm_profile_begin_data(), __llvm_profile_end_data(),
+ __llvm_profile_begin_counters(), __llvm_profile_end_counters(),
+ __llvm_profile_begin_names(), __llvm_profile_end_names());
if (ret != 0) {
fprintf(stderr, "failed to write buffer");