projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify boolean conditional return statements.
[oota-llvm.git]
/
lib
/
AsmParser
/
LLParser.cpp
diff --git
a/lib/AsmParser/LLParser.cpp
b/lib/AsmParser/LLParser.cpp
index d3c8ffd2fef94f797628a84e24d5b8cbf470e342..713aba790ef6066c19b723d7e88b64a88b22fead 100644
(file)
--- a/
lib/AsmParser/LLParser.cpp
+++ b/
lib/AsmParser/LLParser.cpp
@@
-564,10
+564,7
@@
bool LLParser::ParseNamedMetadata() {
NMD->addOperand(N);
} while (EatIfPresent(lltok::comma));
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:
}
/// ParseStandaloneMetadata: