aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authoryronglin <yronglin777@gmail.com>2024-07-23 09:39:30 +0800
committerGitHub <noreply@github.com>2024-07-23 09:39:30 +0800
commit4572efea90f2ddf51c618790a119ad9b6fc2c7ed (patch)
tree76978cdf1d64ff2a096dee020f25a27b1d52065f /clang/lib/CodeGen/CodeGenFunction.cpp
parentd251a328b809ec66ca25cf72f71e127204eabfeb (diff)
downloadllvm-4572efea90f2ddf51c618790a119ad9b6fc2c7ed.zip
llvm-4572efea90f2ddf51c618790a119ad9b6fc2c7ed.tar.gz
llvm-4572efea90f2ddf51c618790a119ad9b6fc2c7ed.tar.bz2
[Clang][Interp] `__builtin_os_log_format_buffer_size` should be an unevaluated builtin (#99895)
Follow the current behavior of constant evaluator, `__builtin_os_log_format_buffer_size` should be an unevaluated builtin. The following code is well-formed: ``` void test_builtin_os_log(void *buf, int i, const char *data) { constexpr int len = __builtin_os_log_format_buffer_size("%d %{public}s %{private}.16P", i, data, data); } ``` Signed-off-by: yronglin <yronglin777@gmail.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions