We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad6926 commit 56639dcCopy full SHA for 56639dc
llvm/lib/IR/Type.cpp
@@ -974,8 +974,9 @@ struct TargetTypeInfo {
974
template <typename... ArgTys>
975
TargetTypeInfo(Type *LayoutType, ArgTys... Properties)
976
: LayoutType(LayoutType), Properties((0 | ... | Properties)) {
977
- if (this->Properties & TargetExtType::CanBeVectorElement)
978
- assert(LayoutType->isSized() && "Vector element type must be sized");
+ assert((!(this->Properties & TargetExtType::CanBeVectorElement) ||
+ LayoutType->isSized()) &&
979
+ "Vector element type must be sized");
980
}
981
};
982
} // anonymous namespace
0 commit comments