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 | 535a02acfb8eb35f36f732e65456e2cd79b7aff5 (patch) | |
tree | 5fcd7c8dacfac4424d48c86d881ae7617fc580b2 /llvm | |
parent | 2522d2df0650e2a7d67fe66f3699396056300733 (diff) | |
download | bcm5719-llvm-535a02acfb8eb35f36f732e65456e2cd79b7aff5.tar.gz bcm5719-llvm-535a02acfb8eb35f36f732e65456e2cd79b7aff5.zip |
fix a really bad bug that would cause nested cursors to break,
used by the new bitcode reader.
llvm-svn: 134821
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Bitcode/BitstreamReader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/Bitcode/BitstreamReader.h b/llvm/include/llvm/Bitcode/BitstreamReader.h index 0ca3ad15618..0437f53134d 100644 --- a/llvm/include/llvm/Bitcode/BitstreamReader.h +++ b/llvm/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; |