diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-09 17:00:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-09 17:00:12 +0000 |
commit | a668c9ee491318b4ca8a92b5e67fb65a3b403369 (patch) | |
tree | 75f80355dec467122ab7ced3e20898d9313461b0 /include/llvm/Bitcode/BitstreamReader.h | |
parent | 5445ecdf6964bc270bb89d4a16a712e425b4a23c (diff) |
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
Diffstat (limited to 'include/llvm/Bitcode/BitstreamReader.h')
-rw-r--r-- | include/llvm/Bitcode/BitstreamReader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 0ca3ad1561..0437f53134 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -194,6 +194,7 @@ public: CurAbbrevs[i]->addRef(); // Copy block scope and bump ref counts. + BlockScope = RHS.BlockScope; for (unsigned S = 0, e = static_cast<unsigned>(BlockScope.size()); S != e; ++S) { std::vector<BitCodeAbbrev*> &Abbrevs = BlockScope[S].PrevAbbrevs; |