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/ASTReaderStmt.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/ASTReaderStmt.cpp')
-rw-r--r-- | lib/Serialization/ASTReaderStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Serialization/ASTReaderStmt.cpp b/lib/Serialization/ASTReaderStmt.cpp index 7b0845d5e7..ab2bba7283 100644 --- a/lib/Serialization/ASTReaderStmt.cpp +++ b/lib/Serialization/ASTReaderStmt.cpp @@ -220,6 +220,7 @@ void ASTStmtReader::VisitLabelStmt(LabelStmt *S) { S->setSubStmt(Reader.ReadSubStmt()); S->setIdentLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); S->setUsed(Record[Idx++]); + S->setUnusedAttribute(Record[Idx++]); Reader.RecordLabelStmt(S, Record[Idx++]); } |