Don't build extra init lists.

AssignConvertType::IncompatibleVectors means the two types are in fact
compatible. :)

No testcase; I don't think the extra init list has any actual visible effect
other than making the resulting AST dump look a bit strange.

llvm-svn: 190845
This commit is contained in:
Eli Friedman 2013-09-17 04:07:04 +00:00
parent 1409e6e7c6
commit b2a8d464aa
1 changed files with 1 additions and 1 deletions

View File

@ -901,7 +901,7 @@ void InitListChecker::CheckSubElementType(const InitializedEntity &Entity,
if ((ElemType->isRecordType() || ElemType->isVectorType()) &&
SemaRef.CheckSingleAssignmentConstraints(ElemType, ExprRes,
!VerifyOnly)
== Sema::Compatible) {
!= Sema::Incompatible) {
if (ExprRes.isInvalid())
hadError = true;
else {