[clang] [C++20] Fix a crash with spaceship and vector types (PR #139767)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue May 13 10:07:34 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();
----------------
erichkeane wrote:
The other versions of 'deleted' all seem to diagnose first, is there a reason to not do so here?
https://github.com/llvm/llvm-project/pull/139767
More information about the cfe-commits
mailing list