Correctly compute the number of compaction tables.
llvm-svn: 16064
diff --git a/llvm/lib/Bytecode/Reader/Analyzer.cpp b/llvm/lib/Bytecode/Reader/Analyzer.cpp
index 378b729..adaaa7c 100644
--- a/llvm/lib/Bytecode/Reader/Analyzer.cpp
+++ b/llvm/lib/Bytecode/Reader/Analyzer.cpp
@@ -241,10 +241,10 @@
virtual void handleCompactionTableBegin() {
if (os)
*os << " BLOCK: CompactionTable {\n";
+ bca.numCmpctnTables++;
}
virtual void handleCompactionTablePlane( unsigned Ty, unsigned NumEntries) {
- bca.numCmpctnTables++;
if (os)
*os << " Plane: Ty=" << Ty << " Size=" << NumEntries << "\n";
}