[lldb-dev] [PATCH] Quick bugfix in source/Symbol/Symtab.cpp

William Lynch wlynch at wlynch.cx
Mon Jul 19 19:05:46 PDT 2010


It looks like the operator should be || not && in this case.

Index: source/Symbol/Symtab.cpp
===================================================================
--- source/Symbol/Symtab.cpp (revision 108750)
+++ source/Symbol/Symtab.cpp (working copy)
@@ -504,7 +504,7 @@
 Symtab::CalculateSymbolSize (Symbol *symbol)
 {
     // Make sure this symbol is from this symbol table...
-    if (symbol < m_symbols.data() && symbol >= m_symbols.data() +
m_symbols.size())
+    if (symbol < m_symbols.data() || symbol >= m_symbols.data() +
m_symbols.size())
         return 0;

     // See if this symbol already has a byte size?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100719/5b182be9/attachment.html>


More information about the lldb-dev mailing list