diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-29 01:49:24 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-29 01:49:24 +0000 |
| commit | 55b9ecbc7a9840843353bb115f52c315fe6034ab (patch) | |
| tree | e088f001a7cf6e13bb39ba41d89c83029a587a51 /clang/lib/Parse/ParseDecl.cpp | |
| parent | 716e688fcaa86988c3e15391869c9a3ab950a8f3 (diff) | |
| download | bcm5719-llvm-55b9ecbc7a9840843353bb115f52c315fe6034ab.tar.gz bcm5719-llvm-55b9ecbc7a9840843353bb115f52c315fe6034ab.zip | |
If a declarator group declares a type, make sure to add that declaration
to the DeclGroup.
llvm-svn: 72559
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 54e70be16ec..b667014efc7 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -437,7 +437,8 @@ ParseInitDeclaratorListAfterFirstDeclarator(Declarator &D) { ParseDeclarator(D); } - return Actions.FinalizeDeclaratorGroup(CurScope, DeclsInGroup.data(), + return Actions.FinalizeDeclaratorGroup(CurScope, D.getDeclSpec(), + DeclsInGroup.data(), DeclsInGroup.size()); } |

