Remove redundant <cmath>.
[oota-llvm.git] / lib / VMCore / SymbolTable.cpp
index 3290fbd37a7233bbae840be3ade16287c70cce8a..b4f8a8820ed1ecb5b46a50c6dc5a1ae9c4b01718 100644 (file)
@@ -167,7 +167,7 @@ Type* SymbolTable::remove(type_iterator Entry) {
 
 #if DEBUG_SYMBOL_TABLE
   dump();
-  std::cerr << " Removing Value: " << Result->getName() << "\n";
+  std::cerr << " Removing type: " << Entry->first << "\n";
 #endif
 
   tmap.erase(Entry);
@@ -269,12 +269,12 @@ bool SymbolTable::strip() {
     value_iterator B = Plane.begin(), Bend = Plane.end();
     while (B != Bend) {   // Found nonempty type plane!
       Value *V = B->second;
+      ++B;
       if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasInternalLinkage()) {
         // Set name to "", removing from symbol table!
         V->setName("");
         RemovedSymbol = true;
       }
-      ++B;
     }
   }