diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-04-15 22:33:43 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-04-15 22:33:43 +0000 |
| commit | b2ccf010fb5e4b382bad7c4ea906ac88509ced47 (patch) | |
| tree | 9341de299319338ee4f3d92284e3bd317d0c3e8c /clang/lib/Sema/SemaObjCProperty.cpp | |
| parent | f7f97b4bbdf0cff78d95886953851aa17b64eb7b (diff) | |
| download | bcm5719-llvm-b2ccf010fb5e4b382bad7c4ea906ac88509ced47.tar.gz bcm5719-llvm-b2ccf010fb5e4b382bad7c4ea906ac88509ced47.zip | |
Feed proper source-location information into Sema::LookupSingleResult,
in case it ends up doing something that might trigger diagnostics
(template instantiation, ambiguity reporting, access
reporting). Noticed while working on PR6831.
llvm-svn: 101412
Diffstat (limited to 'clang/lib/Sema/SemaObjCProperty.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index 3bf34665be4..c73d8150599 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -204,7 +204,7 @@ ObjCPropertyDecl *Sema::CreatePropertyDecl(Scope *S, ObjCInterfaceDecl *IDecl = OIT->getDecl(); if (IDecl) if (ObjCProtocolDecl* PNSCopying = - LookupProtocol(&Context.Idents.get("NSCopying"))) + LookupProtocol(&Context.Idents.get("NSCopying"), AtLoc)) if (IDecl->ClassImplementsProtocol(PNSCopying, true)) Diag(AtLoc, diag::warn_implements_nscopying) << PropertyId; } |

