[clang] [clang][bytecode] Check builtin carryops for dummy pointers (PR #157490)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 9 13:15:36 PDT 2025
================
@@ -36,3 +36,10 @@ 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);
static_assert(len > 0, "Expect len > 0");
}
+
+void addc_dummy()
+{
+ unsigned int a;
+ if (__builtin_addc (1, 42, 0, &a))
----------------
shafik wrote:
What makes `&a` a dummy pointer here? I was looking at the code trying to understand the meaning of dummy but it was not clear.
https://github.com/llvm/llvm-project/pull/157490
More information about the cfe-commits
mailing list