diff --git a/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp b/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp index 6a32ab62d40..a6849660d0b 100644 --- a/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp @@ -43,7 +43,7 @@ DwarfAccelTable::DwarfAccelTable(DwarfAccelTable::Atom atom) : } DwarfAccelTable::~DwarfAccelTable() { - for (size_t i = 0 ; i < Data.size(); ++i) + for (size_t i = 0, e = Data.size() ; i < e; ++i) delete Data[i]; }