summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-05-29 01:49:24 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-05-29 01:49:24 +0000
commit55b9ecbc7a9840843353bb115f52c315fe6034ab (patch)
treee088f001a7cf6e13bb39ba41d89c83029a587a51 /clang/lib/Parse/ParseDecl.cpp
parent716e688fcaa86988c3e15391869c9a3ab950a8f3 (diff)
downloadbcm5719-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.cpp3
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());
}
OpenPOWER on IntegriCloud