From b9f5ce3a435c1a2b92b0e826fee4cc8da288bb43 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 25 May 2015 13:50:21 +0000 Subject: [PATCH] Simplify boolean conditional return statements. Patch by Richard git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238134 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Reader/BitstreamReader.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Bitcode/Reader/BitstreamReader.cpp b/lib/Bitcode/Reader/BitstreamReader.cpp index 450bbbc4558..3b03f4b12b8 100644 --- a/lib/Bitcode/Reader/BitstreamReader.cpp +++ b/lib/Bitcode/Reader/BitstreamReader.cpp @@ -48,10 +48,7 @@ bool BitstreamCursor::EnterSubBlock(unsigned BlockID, unsigned *NumWordsP) { if (NumWordsP) *NumWordsP = NumWords; // Validate that this block is sane. - if (CurCodeSize == 0 || AtEndOfStream()) - return true; - - return false; + return CurCodeSize == 0 || AtEndOfStream(); } static uint64_t readAbbreviatedField(BitstreamCursor &Cursor,