DumpSegment64Command() wasn't returning correct result. Caught by static analyzer...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 26 Apr 2012 22:07:28 +0000 (22:07 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 26 Apr 2012 22:07:28 +0000 (22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155669 91177308-0d34-0410-b5e6-96231b3b80d8

tools/macho-dump/macho-dump.cpp

index 2b22c3b0fd91d269724463e0eeba6646d6582583..f65c79595a95350c72cc502599e9dac390be0e4e 100644 (file)
@@ -194,7 +194,7 @@ static int DumpSegment64Command(MachOObject &Obj,
   }
   outs() << "  ])\n";
 
-  return 0;
+  return Res;
 }
 
 static void DumpSymbolTableEntryData(MachOObject &Obj,