mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Fixed a bug introduced by my last patch. Now we properly clear out the BatchIDVec
vector before reusing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43984 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -213,6 +213,8 @@ public:
|
||||
|
||||
template <typename T>
|
||||
void BatchReadOwnedPtrs(unsigned NumPtrs, T** Ptrs, bool AutoRegister=true) {
|
||||
BatchIDVec.clear();
|
||||
|
||||
for (unsigned i = 0; i < NumPtrs; ++i)
|
||||
BatchIDVec.push_back(ReadPtrID());
|
||||
|
||||
|
Reference in New Issue
Block a user