[libclang] Fix crash when indexing attributes, rdar://10702250.

llvm-svn: 148524
This commit is contained in:
Argyrios Kyrtzidis 2012-01-20 01:38:51 +00:00
parent 5d34322811
commit 908c4dcc5d
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
@class Foo;
@interface Bar
@property (retain) __attribute__((iboutletcollection(Foo))) Foo *prop;
@end
// RUN: c-index-test -index-file %s | FileCheck %s
// CHECK: <attribute>: attribute(iboutletcollection)= [IBOutletCollection=ObjCInterface]

View File

@ -49,7 +49,7 @@ IndexingContext::ObjCProtocolListInfo::ObjCProtocolListInfo(
IBOutletCollectionInfo::IBOutletCollectionInfo(
const IBOutletCollectionInfo &other)
: AttrInfo(CXIdxAttr_IBOutletCollection, other.cursor, other.loc, A) {
: AttrInfo(CXIdxAttr_IBOutletCollection, other.cursor, other.loc, other.A) {
IBCollInfo.attrInfo = this;
IBCollInfo.classCursor = other.IBCollInfo.classCursor;