[libcxx-commits] [clang] [libcxx] [Clang] Add __builtin_invoke and use it in libc++ (PR #116709)

Timm Baeder via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 13 01:09:17 PDT 2025


================
@@ -4272,6 +4272,12 @@ def MoveIfNsoexcept : CxxLibBuiltin<"utility"> {
   let Namespace = "std";
 }
 
+def Invoke : Builtin {
+  let Spellings = ["__builtin_invoke"];
+  let Attributes = [CustomTypeChecking, Constexpr];
----------------
tbaederr wrote:

There are no changes to `ExprConstant.cpp` - is this actually tested in a constexpr context?

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


More information about the libcxx-commits mailing list