[cfe-commits] r112466 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Chandler Carruth
chandlerc at gmail.com
Mon Aug 30 00:36:24 PDT 2010
Author: chandlerc
Date: Mon Aug 30 02:36:24 2010
New Revision: 112466
URL: http://llvm.org/viewvc/llvm-project?rev=112466&view=rev
Log:
Add some braces for sanity and GCC silence. These became unbalanced in r112122,
so please review echristo and let me know if the logic is wrong now.
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=112466&r1=112465&r2=112466&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Aug 30 02:36:24 2010
@@ -5035,7 +5035,7 @@
// 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()) {
@@ -5053,6 +5053,7 @@
return lhsType;
}
}
+ }
}
// Handle the case of equivalent AltiVec and GCC vector types
More information about the cfe-commits
mailing list