[llvm-branch-commits] [llvm-branch] r134593 - /llvm/branches/type-system-rewrite/include/llvm/Bitcode/BitstreamReader.h
Chris Lattner
sabre at nondot.org
Wed Jul 6 21:33:59 PDT 2011
Author: lattner
Date: Wed Jul 6 23:33:59 2011
New Revision: 134593
URL: http://llvm.org/viewvc/llvm-project?rev=134593&view=rev
Log:
fix a really nasty bug in BitstreamCursor which would cause it to lose the
BlockScope stack when copied.
Modified:
llvm/branches/type-system-rewrite/include/llvm/Bitcode/BitstreamReader.h
Modified: llvm/branches/type-system-rewrite/include/llvm/Bitcode/BitstreamReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/include/llvm/Bitcode/BitstreamReader.h?rev=134593&r1=134592&r2=134593&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/include/llvm/Bitcode/BitstreamReader.h (original)
+++ llvm/branches/type-system-rewrite/include/llvm/Bitcode/BitstreamReader.h Wed Jul 6 23:33:59 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-branch-commits
mailing list