mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 10:17:36 +00:00
Simplify boolean conditional return statements in tools/llvm-symbolizer.
Patch by Richard. llvm-svn: 251216
This commit is contained in:
parent
1149216eae
commit
16110f1617
@ -121,9 +121,7 @@ static bool parseCommand(bool &IsData, std::string &ModuleName,
|
||||
// Skip delimiters and parse module offset.
|
||||
pos += strspn(pos, kDelimiters);
|
||||
int offset_length = strcspn(pos, kDelimiters);
|
||||
if (StringRef(pos, offset_length).getAsInteger(0, ModuleOffset))
|
||||
return false;
|
||||
return true;
|
||||
return !StringRef(pos, offset_length).getAsInteger(0, ModuleOffset);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
Loading…
Reference in New Issue
Block a user