diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-02 01:18:16 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-02 01:18:16 +0000 |
commit | ec1a58b201b3276966aaade8ac3ac4705aba96c2 (patch) | |
tree | 50199a563624176c8e9acca64775190d220f654d /lib/Sema/SemaDeclObjC.cpp | |
parent | c9d3c7edb513e9b8a6ab65b04133653e71d7a72b (diff) |
Move ObjCProtocolDecl::EndLoc into its DefinitionData, and give
ObjCProtocolDecl proper source-range information.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index e76971188f..9658174f97 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -615,7 +615,7 @@ Sema::ActOnStartProtocolInterface(SourceLocation AtProtoInterfaceLoc, /// Check then save referenced protocols. PDecl->setProtocolList((ObjCProtocolDecl**)ProtoRefs, NumProtoRefs, ProtoLocs, Context); - PDecl->setLocEnd(EndProtoLoc); + PDecl->setEndOfDefinitionLoc(EndProtoLoc); } CheckObjCDeclScope(PDecl); |