summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReaderStmt.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-07-09 18:55:31 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-07-09 18:55:31 +0000
commitad0bb8e3617ef256c7765aab3cdd6c7d5bec18a8 (patch)
tree7e80e94cefe390a8a1a03139701981c16d630bf6 /clang/lib/Serialization/ASTReaderStmt.cpp
parent9bf2b5677db4bfbe0968b8a005d2a76c67daf6be (diff)
downloadbcm5719-llvm-ad0bb8e3617ef256c7765aab3cdd6c7d5bec18a8.tar.gz
bcm5719-llvm-ad0bb8e3617ef256c7765aab3cdd6c7d5bec18a8.zip
Silence unused variable warning in -Asserts build
llvm-svn: 159954
Diffstat (limited to 'clang/lib/Serialization/ASTReaderStmt.cpp')
-rw-r--r--clang/lib/Serialization/ASTReaderStmt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReaderStmt.cpp b/clang/lib/Serialization/ASTReaderStmt.cpp
index 7d56f10eb53..c5325b5f783 100644
--- a/clang/lib/Serialization/ASTReaderStmt.cpp
+++ b/clang/lib/Serialization/ASTReaderStmt.cpp
@@ -165,6 +165,7 @@ void ASTStmtReader::VisitAttributedStmt(AttributedStmt *S) {
uint64_t NumAttrs = Record[Idx++];
AttrVec Attrs;
Reader.ReadAttributes(F, Attrs, Record, Idx);
+ (void)NumAttrs;
assert(NumAttrs == S->NumAttrs);
assert(NumAttrs == Attrs.size());
std::copy(Attrs.begin(), Attrs.end(), S->Attrs);
OpenPOWER on IntegriCloud