mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 08:57:34 +00:00
Simplify boolean conditional return statements in tools/llvm-symbolizer.
Patch by Richard. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51c6afaf85
commit
ef85994685
@ -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