Silence warnings in the release build

Swift SVN r5950
This commit is contained in:
Dave Abrahams
2013-07-01 21:42:16 +00:00
parent 6ab06feb16
commit 096ffc6eaf
8 changed files with 14 additions and 2 deletions

View File

@@ -1006,6 +1006,7 @@ void Serializer::writeAllDeclsAndTypes() {
DeclID id = DeclIDs[next];
assert(id != 0 && "decl or type not referenced properly");
(void)id;
auto &offsets = next.isDecl() ? DeclOffsets : TypeOffsets;
assert((id - 1) == offsets.size());