diff options
author | yronglin <yronglin777@gmail.com> | 2024-07-23 09:39:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-23 09:39:30 +0800 |
commit | 4572efea90f2ddf51c618790a119ad9b6fc2c7ed (patch) | |
tree | 76978cdf1d64ff2a096dee020f25a27b1d52065f /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | d251a328b809ec66ca25cf72f71e127204eabfeb (diff) | |
download | llvm-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