[compiler-rt] 8f7dc99 - [test/profile] Pass -w to suppress suggestion to use fopen_s
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 1 11:06:54 PST 2021
Author: Vedant Kumar
Date: 2021-03-01T11:06:38-08:00
New Revision: 8f7dc9964752fa7ba703a6682314a79b4df849dd
URL: https://github.com/llvm/llvm-project/commit/8f7dc9964752fa7ba703a6682314a79b4df849dd
DIFF: https://github.com/llvm/llvm-project/commit/8f7dc9964752fa7ba703a6682314a79b4df849dd.diff
LOG: [test/profile] Pass -w to suppress suggestion to use fopen_s
Added:
Modified:
compiler-rt/test/profile/instrprof-write-buffer-internal.c
Removed:
################################################################################
diff --git a/compiler-rt/test/profile/instrprof-write-buffer-internal.c b/compiler-rt/test/profile/instrprof-write-buffer-internal.c
index 7003e6357f34..a0d699db93ff 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");
More information about the llvm-commits
mailing list