summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-14 03:17:52 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-14 03:17:52 +0000
commit23e1f1d6be5e5f9f1fb71c341f7b3285624a762a (patch)
tree74ab726cda85c465c25190db66af4a55aab765ad /clang/lib/Sema/SemaDecl.cpp
parent575fa059912942c1e1880faba7af6b8f44afc353 (diff)
downloadbcm5719-llvm-23e1f1d6be5e5f9f1fb71c341f7b3285624a762a.tar.gz
bcm5719-llvm-23e1f1d6be5e5f9f1fb71c341f7b3285624a762a.zip
Pass the right brace SourceLocation from the Parser to the TagDecls.
llvm-svn: 75591
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index baa2a2b9abb..3ce11570feb 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -3830,9 +3830,11 @@ void Sema::ActOnTagStartDefinition(Scope *S, DeclPtrTy TagD) {
}
}
-void Sema::ActOnTagFinishDefinition(Scope *S, DeclPtrTy TagD) {
+void Sema::ActOnTagFinishDefinition(Scope *S, DeclPtrTy TagD,
+ SourceLocation RBraceLoc) {
AdjustDeclIfTemplate(TagD);
TagDecl *Tag = cast<TagDecl>(TagD.getAs<Decl>());
+ Tag->setRBraceLoc(RBraceLoc);
if (isa<CXXRecordDecl>(Tag))
FieldCollector->FinishClass();
OpenPOWER on IntegriCloud