Fix typo and formatting
authorNick Kledzik <kledzik@apple.com>
Sat, 30 Aug 2014 01:57:34 +0000 (01:57 +0000)
committerNick Kledzik <kledzik@apple.com>
Sat, 30 Aug 2014 01:57:34 +0000 (01:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216809 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Object/MachOObjectFile.cpp

index 2daa4a81ea8eb10e48f05367b78c2a404a6b6f07..f3367a79599e851ef56ecb31d290219ad5ef53fa 100644 (file)
@@ -1532,7 +1532,7 @@ bool ExportEntry::operator==(const ExportEntry &Other) const {
   if (Stack.size() != Other.Stack.size())
     return false;
   // Not equal if different cumulative strings.
-  if (!CumulativeString.str().equals(CumulativeString.str()))
+  if (!CumulativeString.str().equals(Other.CumulativeString.str()))
     return false;
   // Equal if all nodes in both stacks match.
   for (unsigned i=0; i < Stack.size(); ++i) {
@@ -1600,8 +1600,8 @@ void ExportEntry::pushNode(uint64_t offset) {
       State.ImportName = reinterpret_cast<const char*>(State.Current);
     } else {
       State.Address = readULEB128(State.Current);
-                       if (State.Flags &  MachO::EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER)
-                               State.Other = readULEB128(State.Current); 
+      if (State.Flags & MachO::EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER)
+        State.Other = readULEB128(State.Current); 
     }
   }
   State.ChildCount = *Children;