summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-06-08 02:16:11 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-06-08 02:16:11 +0000
commit31afb956ae609d051060a70004978ff8c5278add (patch)
tree2a9db3c294eac3a72ed844bd15d4d1d5d3792a48 /clang/lib/Sema
parent5677536bff8c1bc018a3ebba2331b46a8b20ddb8 (diff)
downloadbcm5719-llvm-31afb956ae609d051060a70004978ff8c5278add.tar.gz
bcm5719-llvm-31afb956ae609d051060a70004978ff8c5278add.zip
[libclang/AST]
AST: For auto-synthesized ivars give them the location of the related property (previously they had no source location). This allows them to be indexed by libclang. libclang: Make sure synthesized ivars are indexed before the methods that may reference them. Fixes rdar://11607001. llvm-svn: 158189
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index 52859d4f6d2..91fe0ba92be 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/lib/Sema/SemaObjCProperty.cpp
@@ -1502,7 +1502,7 @@ void Sema::DefaultSynthesizeProperties(Scope *S, ObjCImplDecl* IMPDecl,
true,
/* property = */ Prop->getIdentifier(),
/* ivar = */ getDefaultSynthIvarName(Prop, Context),
- SourceLocation()));
+ Prop->getLocation()));
if (PIDecl) {
Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis);
Diag(IMPDecl->getLocation(), diag::note_while_in_implementation);
OpenPOWER on IntegriCloud