Don't evaluate Data.size() on every iteration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144095 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2011-11-08 18:22:25 +00:00
parent ad6eef4a65
commit ec8ffc29c0

View File

@ -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];
}