From: Rafael Espindola Date: Tue, 26 May 2015 20:37:36 +0000 (+0000) Subject: Simplify boolean conditional return statements. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=8a7b4ea2ad94e07b7856ef312a85c62ffdc6b9a7 Simplify boolean conditional return statements. Patch by Richard . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238250 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index d3c8ffd2fef..713aba790ef 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -564,10 +564,7 @@ bool LLParser::ParseNamedMetadata() { NMD->addOperand(N); } while (EatIfPresent(lltok::comma)); - if (ParseToken(lltok::rbrace, "expected end of metadata node")) - return true; - - return false; + return ParseToken(lltok::rbrace, "expected end of metadata node"); } /// ParseStandaloneMetadata: