diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-14 03:17:52 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-14 03:17:52 +0000 |
commit | 23e1f1d6be5e5f9f1fb71c341f7b3285624a762a (patch) | |
tree | 74ab726cda85c465c25190db66af4a55aab765ad /clang/lib/Parse/ParseDecl.cpp | |
parent | 575fa059912942c1e1880faba7af6b8f44afc353 (diff) | |
download | bcm5719-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/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 1ddd20a9ecb..94855b24f5f 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -1500,7 +1500,7 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc, LBraceLoc, RBraceLoc, AttrList); StructScope.Exit(); - Actions.ActOnTagFinishDefinition(CurScope, TagDecl); + Actions.ActOnTagFinishDefinition(CurScope, TagDecl, RBraceLoc); } @@ -1656,7 +1656,7 @@ void Parser::ParseEnumBody(SourceLocation StartLoc, DeclPtrTy EnumDecl) { AttrList = ParseAttributes(); // FIXME: where do they do? EnumScope.Exit(); - Actions.ActOnTagFinishDefinition(CurScope, EnumDecl); + Actions.ActOnTagFinishDefinition(CurScope, EnumDecl, RBraceLoc); } /// isTypeSpecifierQualifier - Return true if the current token could be the |