commit | 5047024845d0825fc8ab0a67ac4e096d981912ad | [log] [tgz] |
---|---|---|
author | Matt Beaumont-Gay <matthewbg@google.com> | Mon Jul 09 18:55:31 2012 +0000 |
committer | Matt Beaumont-Gay <matthewbg@google.com> | Mon Jul 09 18:55:31 2012 +0000 |
tree | 7c76ae9b4e6f36011d26577d9114ba67c2d53391 | |
parent | f79470583759d20c20268711e6111461aefa8461 [diff] |
Silence unused variable warning in -Asserts build git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159954 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Serialization/ASTReaderStmt.cpp b/lib/Serialization/ASTReaderStmt.cpp index 7d56f10..c5325b5 100644 --- a/lib/Serialization/ASTReaderStmt.cpp +++ b/lib/Serialization/ASTReaderStmt.cpp
@@ -165,6 +165,7 @@ 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);