diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-09-28 14:54:07 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-09-28 14:54:07 +0000 |
commit | 1a18600b85aaa691122983dd8dcf4225cfc9ef68 (patch) | |
tree | ae18cba7044d0436807c534f49996cc0ca91e3c0 /lib/Serialization/ASTWriterStmt.cpp | |
parent | edadecc012dd6bc0bb008a89f0eaccd5c4c1ff64 (diff) |
Don't warn for an unused label if it has 'unused' attribute. Fixes rdar://8483139.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterStmt.cpp')
-rw-r--r-- | lib/Serialization/ASTWriterStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Serialization/ASTWriterStmt.cpp b/lib/Serialization/ASTWriterStmt.cpp index edd8002d47..3905ad6896 100644 --- a/lib/Serialization/ASTWriterStmt.cpp +++ b/lib/Serialization/ASTWriterStmt.cpp @@ -214,6 +214,7 @@ void ASTStmtWriter::VisitLabelStmt(LabelStmt *S) { Writer.AddStmt(S->getSubStmt()); Writer.AddSourceLocation(S->getIdentLoc(), Record); Record.push_back(S->isUsed()); + Record.push_back(S->HasUnusedAttribute()); Record.push_back(Writer.GetLabelID(S)); Code = serialization::STMT_LABEL; } |