================ @@ -839,6 +839,12 @@ def BuiltinAssumeAligned : Builtin { let Prototype = "void*(void const*, size_t, ...)"; } +def BuiltinAssumeDereferenceable : Builtin { + let Spellings = ["__builtin_assume_dereferenceable"]; + let Attributes = [NoThrow, Const, Constexpr]; ---------------- philnik777 wrote:
I think it would be really nice to make this `constexpr`, since we'd have to jump through hoops otherwise to use this in e.g. `string` (yes, I already have ideas). https://github.com/llvm/llvm-project/pull/121789 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits