mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 17:06:15 +00:00
fix a really bad bug that would cause nested cursors to break,
used by the new bitcode reader. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5445ecdf69
commit
a668c9ee49
@ -194,6 +194,7 @@ public:
|
|||||||
CurAbbrevs[i]->addRef();
|
CurAbbrevs[i]->addRef();
|
||||||
|
|
||||||
// Copy block scope and bump ref counts.
|
// Copy block scope and bump ref counts.
|
||||||
|
BlockScope = RHS.BlockScope;
|
||||||
for (unsigned S = 0, e = static_cast<unsigned>(BlockScope.size());
|
for (unsigned S = 0, e = static_cast<unsigned>(BlockScope.size());
|
||||||
S != e; ++S) {
|
S != e; ++S) {
|
||||||
std::vector<BitCodeAbbrev*> &Abbrevs = BlockScope[S].PrevAbbrevs;
|
std::vector<BitCodeAbbrev*> &Abbrevs = BlockScope[S].PrevAbbrevs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user