Trivial change to dump() function for SparseBitVector

llvm-svn: 104433
This commit is contained in:
John Mosby 2010-05-22 05:13:17 +00:00
parent bd3b1d40da
commit 987a1576d2
1 changed files with 9 additions and 5 deletions

View File

@ -891,9 +891,13 @@ template <unsigned ElementSize>
void dump(const SparseBitVector<ElementSize> &LHS, raw_ostream &out) {
out << "[";
typename SparseBitVector<ElementSize>::iterator bi;
for (bi = LHS.begin(); bi != LHS.end(); ++bi) {
out << *bi << " ";
typename SparseBitVector<ElementSize>::iterator bi = LHS.begin(),
be = LHS.end();
if (bi != be) {
out << *bi;
for (++bi; bi != be; ++bi) {
out << " " << *bi;
}
}
out << "]\n";
}