[Lldb-commits] [PATCH] D30454: [LLDB][MIPS] Fix typo in MatchesModuleSpec()

Nitesh Jain via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 28 04:22:50 PST 2017


nitesh.jain created this revision.

The MatchesModuleSpec() should return false if module_ref is not found.


https://reviews.llvm.org/D30454

Files:
  source/Core/Module.cpp


Index: source/Core/Module.cpp
===================================================================
--- source/Core/Module.cpp
+++ source/Core/Module.cpp
@@ -1615,10 +1615,10 @@
 
   const ConstString &object_name = module_ref.GetObjectName();
   if (object_name) {
-    if (object_name != GetObjectName())
-      return false;
+    if (object_name == GetObjectName())
+      return true;
   }
-  return true;
+  return false;
 }
 
 bool Module::FindSourceFile(const FileSpec &orig_spec,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30454.90007.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170228/4c44971a/attachment.bin>


More information about the lldb-commits mailing list