[PATCH] Fix crash when serializing ObjCIvarDecl.
Argyrios Kyrtzidis
akyrtzi at gmail.com
Sat Jun 21 11:25:16 PDT 2014
In r211438, thanks!
On Jun 20, 2014, at 6:58 PM, Yiding Jia <yiding at fb.com> wrote:
> add a test
>
> http://reviews.llvm.org/D4239
>
> Files:
> lib/Serialization/ASTWriterDecl.cpp
> test/Index/index-pch-objc.m
>
> Index: lib/Serialization/ASTWriterDecl.cpp
> ===================================================================
> --- lib/Serialization/ASTWriterDecl.cpp
> +++ lib/Serialization/ASTWriterDecl.cpp
> @@ -1515,8 +1515,6 @@
> // 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));
> Index: test/Index/index-pch-objc.m
> ===================================================================
> --- /dev/null
> +++ 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
> +
> + at interface SomeClass
> + at property (retain) id foo;
> + at end
> + at implementation SomeClass
> + at end
> +
> +// CHECK: [indexDeclaration]: kind: objc-ivar | name: _foo
> <D4239.10717.patch>
More information about the cfe-commits
mailing list