diff options
| author | John McCall <rjmccall@apple.com> | 2010-12-04 09:03:57 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-12-04 09:03:57 +0000 |
| commit | 211e699754cc23a2a634cfcd818e532f5c8c5d06 (patch) | |
| tree | 735620c21438c8291de47d9f9a6f4c99dea41a68 /clang/lib/Sema/SemaInit.cpp | |
| parent | 5a4ce8bf06ad66941e0c9466f2c68c68bcae33bf (diff) | |
| download | bcm5719-llvm-211e699754cc23a2a634cfcd818e532f5c8c5d06.tar.gz bcm5719-llvm-211e699754cc23a2a634cfcd818e532f5c8c5d06.zip | |
Don't crash when initializing a subaggregate in C from a property r-value.
llvm-svn: 120899
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index d7048a129f1..7c4bd4a82e0 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -698,6 +698,7 @@ void InitListChecker::CheckSubElementType(const InitializedEntity &Entity, // that of the expression. if ((ElemType->isRecordType() || ElemType->isVectorType()) && SemaRef.Context.hasSameUnqualifiedType(expr->getType(), ElemType)) { + SemaRef.DefaultFunctionArrayLvalueConversion(expr); UpdateStructuredListElement(StructuredList, StructuredIndex, expr); ++Index; return; |

