From fb1e4465f14a4fcf8376a6c249bcdf86af915e69 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Tue, 6 Nov 2018 06:26:17 +0000 Subject: os_log: Add a new privacy annotation "sensitive". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a stricter privacy annotation than "private", which will be used for data that shouldn’t be logged to disk. For backward compatibility, the "private" bit is set too. rdar://problem/36755912 llvm-svn: 346210 --- clang/test/CodeGen/builtins.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/CodeGen/builtins.c') diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index 829f725617f..40d7ca32d77 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/test/CodeGen/builtins.c @@ -443,10 +443,17 @@ void test_builtin_os_log(void *buf, int i, const char *data) { // CHECK: call void @__os_log_helper_1_3_1_8_33( __builtin_os_log_format(buf, "%{ xyz, private }s", "abc"); + // CHECK: call void @__os_log_helper_1_3_1_8_37( + __builtin_os_log_format(buf, "%{ xyz, sensitive }s", "abc"); + // The strictest privacy annotation in the string wins. // CHECK: call void @__os_log_helper_1_3_1_8_33( __builtin_os_log_format(buf, "%{ private, public, private, public}s", "abc"); + + // CHECK: call void @__os_log_helper_1_3_1_8_37( + __builtin_os_log_format(buf, "%{ private, sensitive, private, public}s", + "abc"); } // CHECK-LABEL: define linkonce_odr hidden void @__os_log_helper_1_3_4_4_0_8_34_4_17_8_49 -- cgit v1.2.3