Fixed a bug introduced by my last patch. Now we properly clear out the BatchIDVec
vector before reusing it. llvm-svn: 43984
This commit is contained in:
parent
cdf5fca367
commit
b0cdfeb4ba
|
@ -213,6 +213,8 @@ public:
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void BatchReadOwnedPtrs(unsigned NumPtrs, T** Ptrs, bool AutoRegister=true) {
|
void BatchReadOwnedPtrs(unsigned NumPtrs, T** Ptrs, bool AutoRegister=true) {
|
||||||
|
BatchIDVec.clear();
|
||||||
|
|
||||||
for (unsigned i = 0; i < NumPtrs; ++i)
|
for (unsigned i = 0; i < NumPtrs; ++i)
|
||||||
BatchIDVec.push_back(ReadPtrID());
|
BatchIDVec.push_back(ReadPtrID());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue