]> granicus.if.org Git - llvm/commitdiff
Simplify boolean conditional return statements.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 25 May 2015 13:50:21 +0000 (13:50 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 25 May 2015 13:50:21 +0000 (13:50 +0000)
Patch by Richard <legalize@xmission.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238134 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/BitstreamReader.cpp

index 450bbbc4558772051f9ab01cad436f3fd9ee0211..3b03f4b12b814e73f47867c627e5ec0c5d6a2f9c 100644 (file)
@@ -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,