diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-09-19 21:21:25 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-09-19 21:21:25 +0000 |
| commit | 72664df10386b2fb7a8d3621599ad61186a94d30 (patch) | |
| tree | 9fd8e569fdd46444eaf9b0b04c4b87ecb4af42f2 /clang/lib/Serialization/ASTReaderStmt.cpp | |
| parent | 90963413104034cd883c93e08f7b30949429b169 (diff) | |
| download | bcm5719-llvm-72664df10386b2fb7a8d3621599ad61186a94d30.tar.gz bcm5719-llvm-72664df10386b2fb7a8d3621599ad61186a94d30.zip | |
Implement -Wunused-label.
llvm-svn: 114315
Diffstat (limited to 'clang/lib/Serialization/ASTReaderStmt.cpp')
| -rw-r--r-- | clang/lib/Serialization/ASTReaderStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReaderStmt.cpp b/clang/lib/Serialization/ASTReaderStmt.cpp index 6e8ad4fc447..7b0845d5e7b 100644 --- a/clang/lib/Serialization/ASTReaderStmt.cpp +++ b/clang/lib/Serialization/ASTReaderStmt.cpp @@ -219,6 +219,7 @@ void ASTStmtReader::VisitLabelStmt(LabelStmt *S) { S->setID(Reader.GetIdentifierInfo(Record, Idx)); S->setSubStmt(Reader.ReadSubStmt()); S->setIdentLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + S->setUsed(Record[Idx++]); Reader.RecordLabelStmt(S, Record[Idx++]); } |

