so please review echristo and let me know if the logic is wrong now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112466
91177308-0d34-0410-b5e6-
96231b3b80d8
// type. It would be nice if we only had one vector type someday.
if (getLangOptions().LaxVectorConversions) {
if (const VectorType *LV = lhsType->getAs<VectorType>()) {
- if (const VectorType *RV = rhsType->getAs<VectorType>())
+ if (const VectorType *RV = rhsType->getAs<VectorType>()) {
if (LV->getElementType() == RV->getElementType() &&
LV->getNumElements() == RV->getNumElements()) {
if (lhsType->isExtVectorType()) {
return lhsType;
}
}
+ }
}
// Handle the case of equivalent AltiVec and GCC vector types