[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 28 11:29:27 PDT 2025
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/135864 at github.com>
================
@@ -9105,7 +9105,7 @@ def err_expected_callable_argument : Error<
def note_building_builtin_dump_struct_call : Note<
"in call to printing function with arguments '(%0)' while dumping struct">;
def err_builtin_verbose_trap_arg : Error<
- "argument to __builtin_verbose_trap must %select{be a pointer to a constant string|not contain $}0">;
+ "argument to __builtin_verbose_trap must %select{be a pointer to a constant NUL-terminated string|not contain $}0">;
----------------
AaronBallman wrote:
```suggestion
"argument to '__builtin_verbose_trap' must %select{be a pointer to a constant null-terminated string|not contain $}0">;
```
https://github.com/llvm/llvm-project/pull/135864
More information about the cfe-commits
mailing list