[llvm-commits] [llvm] r134821 - /llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
Chris Lattner
sabre at nondot.org
Sat Jul 9 10:00:12 PDT 2011
Author: lattner
Date: Sat Jul 9 12:00:12 2011
New Revision: 134821
URL: http://llvm.org/viewvc/llvm-project?rev=134821&view=rev
Log:
fix a really bad bug that would cause nested cursors to break,
used by the new bitcode reader.
Modified:
llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
Modified: llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitstreamReader.h?rev=134821&r1=134820&r2=134821&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/BitstreamReader.h (original)
+++ llvm/trunk/include/llvm/Bitcode/BitstreamReader.h Sat Jul 9 12:00:12 2011
@@ -194,6 +194,7 @@
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;
More information about the llvm-commits
mailing list