[Lldb-commits] [lldb] r206270 - Remove > 1 check against a boolean.

Hafiz Abid Qadeer hafiz_abid at mentor.com
Tue Apr 15 03:06:47 PDT 2014


Author: abidh
Date: Tue Apr 15 05:06:47 2014
New Revision: 206270

URL: http://llvm.org/viewvc/llvm-project?rev=206270&view=rev
Log:
Remove  > 1 check against a boolean.
I saw a complain about this code on the LLVM channel. It looks wrong to me
as has_tag is a boolean. I am committing it as obvious.

Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=206270&r1=206269&r2=206270&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Tue Apr 15 05:06:47 2014
@@ -5070,7 +5070,7 @@ SymbolFileDWARF::FindDefinitionTypeForDI
                     GetObjectFile()->GetModule()->LogMessage (log,"FindByNameAndTagAndQualifiedNameHash()");
                 m_apple_types_ap->FindByNameAndTagAndQualifiedNameHash (type_name.GetCString(), die->Tag(), qualified_name_hash, die_offsets);
             }
-            else if (has_tag > 1)
+            else if (has_tag)
             {
                 if (log)
                     GetObjectFile()->GetModule()->LogMessage (log,"FindByNameAndTag()");





More information about the lldb-commits mailing list