================
@@ -2093,10 +2093,15 @@ TypeInfo ASTContext::getTypeInfoImpl(const Type *T)
const {
case Type::ExtVector:
case Type::Vector: {
const auto *VT = cast<VectorType>(T);
- TypeInfo EltInfo = getTypeInfo(VT->getElementType());
- Width = VT->isPackedVectorBoolType(*this)
- ? VT->getNumElements()
- : EltInfo.Width * VT->getNumElements();
+ QualType Elt = VT->getElementType();
+ uint64_t EltWidth = [&]() -> uint64_t {
----------------
shafik wrote:
Using an IIL here does not seem warranted, you could just set `EltWidth` to `1`
and then eliminate the first `if`.
https://github.com/llvm/llvm-project/pull/161796
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits