[Lldb-commits] [lldb] r306134 - Fix typo: using && instead of & when evaluating a mask

Mehdi Amini via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 23 11:20:13 PDT 2017


Author: mehdi_amini
Date: Fri Jun 23 13:20:13 2017
New Revision: 306134

URL: http://llvm.org/viewvc/llvm-project?rev=306134&view=rev
Log:
Fix typo: using && instead of & when evaluating a mask

Summary: Reported by coverity, I don't know how to provide a test.

Reviewers: zturner

Subscribers: lldb-commits, emaste

Differential Revision: https://reviews.llvm.org/D34550

Modified:
    lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

Modified: lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp?rev=306134&r1=306133&r2=306134&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp Fri Jun 23 13:20:13 2017
@@ -1693,7 +1693,7 @@ size_t ObjectFileELF::GetSectionHeaderIn
             // ABI Mask doesn't cover N32 and N64 ABI.
             if (header.e_ident[EI_CLASS] == llvm::ELF::ELFCLASS64)
               arch_flags |= lldb_private::ArchSpec::eMIPSABI_N64;
-            else if (header.e_flags && llvm::ELF::EF_MIPS_ABI2)
+            else if (header.e_flags & llvm::ELF::EF_MIPS_ABI2)
               arch_flags |= lldb_private::ArchSpec::eMIPSABI_N32;
             break;
           }




More information about the lldb-commits mailing list