From 534b6f27a053705820df2b97e158371b88222d80 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 15 Apr 2009 04:54:29 +0000 Subject: [PATCH] Don't tip-to around BitstreamReader::JumpToBit jumping to the end of the stream. LLVM has been updated to allow this llvm-svn: 69146 --- clang/lib/Frontend/PCHReader.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index 69745ce7a316..ad3c2e55a990 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -889,18 +889,15 @@ namespace { /// then restores it when destroyed. struct VISIBILITY_HIDDEN SavedStreamPosition { explicit SavedStreamPosition(llvm::BitstreamReader &Stream) - : Stream(Stream), Offset(Stream.GetCurrentBitNo()), - EndOfStream(Stream.AtEndOfStream()){ } + : Stream(Stream), Offset(Stream.GetCurrentBitNo()) { } ~SavedStreamPosition() { - if (!EndOfStream) - Stream.JumpToBit(Offset); + Stream.JumpToBit(Offset); } private: llvm::BitstreamReader &Stream; uint64_t Offset; - bool EndOfStream; }; }