================
@@ -2886,6 +2886,49 @@ class CXXPseudoDestructorExpr : public Expr {
}
};
+/// Represents a C++26 __builtin_type_order(T, U) expression. Used to implement
+/// std::type_order.
+class BuiltinTypeOrderExpr final : public Expr {
----------------
zwuis wrote:
I see.
> - `__builtin_type_order`, a binary type builtin that returns `-1/0/1`. I do
> not think we can or should tie the builtin to `std::strong_ordering` even
> though it seems to be what GCC did as we do not have a good way to create
> complex type in the compiler and tying the builtin to a header seems...
> unhelpful.
https://github.com/llvm/llvm-project/issues/146838#issuecomment-5059089752
I just saw this message. I am curious why not following the message (returning
`-1/0/1`).
https://github.com/llvm/llvm-project/pull/216462
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits