From d886f1a3708079e421787391292ac6246bc2b033 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 21 Jun 2014 18:16:40 +0000 Subject: [PATCH] [PCH] Remove the BackingIvarReferencedInAccessor field from DECL_OBJC_IVAR abbreviation record. Patch by Yiding Jia! llvm-svn: 211438 --- clang/lib/Serialization/ASTWriterDecl.cpp | 2 -- clang/test/Index/index-pch-objc.m | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 clang/test/Index/index-pch-objc.m diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp index 347473c..47ce747 100644 --- a/clang/lib/Serialization/ASTWriterDecl.cpp +++ b/clang/lib/Serialization/ASTWriterDecl.cpp @@ -1515,8 +1515,6 @@ void ASTWriter::WriteDeclsBlockAbbrevs() { // ObjC Ivar Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // getAccessControl Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // getSynthesize - // getBackingIvarReferencedInAccessor - Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type Source Info Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Array)); diff --git a/clang/test/Index/index-pch-objc.m b/clang/test/Index/index-pch-objc.m new file mode 100644 index 0000000..fd89988 --- /dev/null +++ b/clang/test/Index/index-pch-objc.m @@ -0,0 +1,10 @@ +// RUN: c-index-test -write-pch %t.pch %s +// RUN: env LIBCLANG_NOTHREADS=1 c-index-test -index-tu %t.pch | FileCheck %s + +@interface SomeClass +@property (retain) id foo; +@end +@implementation SomeClass +@end + +// CHECK: [indexDeclaration]: kind: objc-ivar | name: _foo -- 2.7.4