diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-11 19:58:01 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-11 19:58:01 +0000 |
commit | 34db84fdb092f89ea3678a0792074a5b9253829a (patch) | |
tree | 7b6d659f93caa4f7238e2c3ec2eb5ee6f316d61d /lib/AST/ASTContext.cpp | |
parent | 86f6cf6800fa7ea3669e057c56f3487c4da3ef46 (diff) |
objective-C blocks: Check for record type when deciding if
byref variable requires extended layout info. to prevent
a crash involving arrays declared __block. // rdar://12787751
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 44f13b6906..f3fa13584d 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -4413,7 +4413,7 @@ bool ASTContext::getByrefLifetime(QualType Ty, return false; HasByrefExtendedLayout = false; - if (Ty->isAggregateType()) { + if (Ty->isRecordType()) { HasByrefExtendedLayout = true; LifeTime = Qualifiers::OCL_None; } |