[clang] [Clang] Introduce __builtin_is_modifiable_lvalue() (PR #132524)

via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 22 12:33:38 PDT 2025


================
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -std=c99 -fsyntax-only -verify %s
+
----------------
Sirraide wrote:

> Edit: Perhaps it's wanted to make this intrinsic accept VLA (and report `false`) and variably-modified types without evaluating the non-constant array size.

That should definitely be possible. I don’t think we really need to evaluate anything here.

https://github.com/llvm/llvm-project/pull/132524


More information about the cfe-commits mailing list