[libcxx-commits] [clang] [libcxx] [Clang] Add __common_type builtin (PR #99473)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 25 10:16:27 PDT 2024


================
@@ -3140,6 +3267,30 @@ checkBuiltinTemplateIdType(Sema &SemaRef, BuiltinTemplateDecl *BTD,
     int64_t N = Index.getExtValue();
     return Ts.getPackAsArray()[N].getAsType();
   }
+
+  case BTK__common_type: {
+    assert(Converted.size() == 4);
+    if (Converted[0].isDependent() || Converted[1].isDependent() ||
+        Converted[2].isDependent() || Converted[3].isDependent())
----------------
cor3ntin wrote:

can we use `any_of` there?

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


More information about the libcxx-commits mailing list