diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-05 19:37:56 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-05 19:37:56 +0000 |
commit | 78181b4b459bade43702de2c0c771f6be1f7e865 (patch) | |
tree | 195ed735aadfab913550d5a222315d37ae12b91e /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | 4c362d53105628e867452a29a0b0e5c5ff3ee60c (diff) | |
download | bcm5719-llvm-78181b4b459bade43702de2c0c771f6be1f7e865.tar.gz bcm5719-llvm-78181b4b459bade43702de2c0c771f6be1f7e865.zip |
Fix the rewriter, rdar://10234024.
llvm-svn: 141201
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index c1c000e0308..de48de15d77 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -586,7 +586,8 @@ Sema::ActOnStartProtocolInterface(SourceLocation AtProtoInterfaceLoc, ProtocolName, ProtocolLoc, PDecl->getLocation(), PList); // Make sure the cached decl gets a valid start location. - PDecl->setLocation(AtProtoInterfaceLoc); + PDecl->setAtStartLoc(AtProtoInterfaceLoc); + PDecl->setLocation(ProtocolLoc); PDecl->setForwardDecl(false); // Since this ObjCProtocolDecl was created by a forward declaration, // we now add it to the DeclContext since it wasn't added before |