Correctly compute the number of compaction tables.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 27 Aug 2004 00:43:51 +0000 (00:43 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 27 Aug 2004 00:43:51 +0000 (00:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16064 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Analyzer.cpp

index 378b72969963e2ba82015fd004584ef83414346e..adaaa7c39abcc005b7baceea39b08f9d2ac4fd81 100644 (file)
@@ -241,10 +241,10 @@ public:
   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";
   }