Simplify boolean conditional return statements in tools/llvm-symbolizer.

Patch by Richard.

llvm-svn: 251216
This commit is contained in:
Rafael Espindola 2015-10-24 23:23:25 +00:00
parent 1149216eae
commit 16110f1617

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