From ef85994685319d1733beff46b7c5b665a79ecb74 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 24 Oct 2015 23:23:25 +0000 Subject: [PATCH] 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 --- tools/llvm-symbolizer/llvm-symbolizer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/llvm-symbolizer/llvm-symbolizer.cpp b/tools/llvm-symbolizer/llvm-symbolizer.cpp index b4485339b0d..e773f04f02e 100644 --- a/tools/llvm-symbolizer/llvm-symbolizer.cpp +++ b/tools/llvm-symbolizer/llvm-symbolizer.cpp @@ -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) {