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:
Rafael Espindola 2015-10-24 23:23:25 +00:00
parent 51c6afaf85
commit ef85994685

View File

@ -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) {