Fixed subtle bug in Deserializer::JumpTo when jumping when the block-nesting

information matching did not exactly match the underlying stream's scoping
information.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44470 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek
2007-11-30 22:45:05 +00:00
parent 2a2a496aac
commit f64903b7d8
2 changed files with 29 additions and 11 deletions

View File

@ -125,7 +125,7 @@ private:
llvm::SmallVector<Location,8> BlockStack;
unsigned AbbrevNo;
unsigned RecordCode;
Location StreamStart;
uint64_t StreamStart;
//===----------------------------------------------------------===//
// Public Interface.
@ -348,7 +348,7 @@ public:
bool FinishedBlock(Location BlockLoc);
bool JumpTo(const Location& BlockLoc);
void Rewind() { JumpTo(StreamStart); }
void Rewind();
bool AtEnd();
bool inRecord();