[clang] [C++20] Fix a crash with spaceship and vector types (PR #139767)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue May 13 10:11:13 PDT 2025
================
@@ -8651,6 +8651,11 @@ class DefaultedComparisonAnalyzer
assert(Best->BuiltinParamTypes[2].isNull() &&
"invalid builtin comparison");
+ // FIXME: If the type we deduced is a vector type, we mark the
+ // comparison as deleted because we don't yet support this.
+ if (isa<VectorType>(T))
+ return Result::deleted();
----------------
AaronBallman wrote:
Oh, I missed the "explain deleted" code paths entirely. I'll address that.
https://github.com/llvm/llvm-project/pull/139767
More information about the cfe-commits
mailing list