summaryrefslogtreecommitdiffstats
path: root/clang/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Parse/ParseStmt.cpp')
-rw-r--r--clang/Parse/ParseStmt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/Parse/ParseStmt.cpp b/clang/Parse/ParseStmt.cpp
index 0651626cfe0..359632a4c30 100644
--- a/clang/Parse/ParseStmt.cpp
+++ b/clang/Parse/ParseStmt.cpp
@@ -185,9 +185,10 @@ Parser::StmtResult Parser::ParseIdentifierStatement(bool OnlyStatement) {
SourceLocation ColonLoc = ConsumeToken();
// Read label attributes, if present.
+ DeclTy *AttrList = 0;
if (Tok.getKind() == tok::kw___attribute)
// TODO: save these somewhere.
- ParseAttributes();
+ AttrList = ParseAttributes();
StmtResult SubStmt = ParseStatement();
OpenPOWER on IntegriCloud