[llvm] r238250 - Simplify boolean conditional return statements.
Rafael Espindola
rafael.espindola at gmail.com
Tue May 26 13:37:36 PDT 2015
Author: rafael
Date: Tue May 26 15:37:36 2015
New Revision: 238250
URL: http://llvm.org/viewvc/llvm-project?rev=238250&view=rev
Log:
Simplify boolean conditional return statements.
Patch by Richard <legalize at xmission.com>.
Modified:
llvm/trunk/lib/AsmParser/LLParser.cpp
Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=238250&r1=238249&r2=238250&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Tue May 26 15:37:36 2015
@@ -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:
More information about the llvm-commits
mailing list