Revert "DI: Fold constant arguments into a single MDString"
[oota-llvm.git] / lib / Transforms / IPO / StripSymbols.cpp
index 813f30d223c5a08a638ab0192bbf0075a152898e..e459a634dcff19ebc8d0e254a6bb6b30e6ea09e0 100644 (file)
@@ -154,9 +154,8 @@ static void RemoveDeadConstant(Constant *C) {
       C->destroyConstant();
 
   // If the constant referenced anything, see if we can delete it as well.
-  for (SmallPtrSet<Constant*, 4>::iterator OI = Operands.begin(),
-         OE = Operands.end(); OI != OE; ++OI)
-    RemoveDeadConstant(*OI);
+  for (Constant *O : Operands)
+    RemoveDeadConstant(O);
 }
 
 // Strip the symbol table of its names.