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:
parent
1409e6e7c6
commit
b2a8d464aa
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue