[Lldb-commits] [PATCH] D34550: Fix typo: using && instead of & when evaluating a mask
Mehdi AMINI via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 22 22:19:17 PDT 2017
mehdi_amini created this revision.
Herald added a subscriber: emaste.
Reported by coverity, I don't know how to provide a test.
https://reviews.llvm.org/D34550
Files:
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
Index: lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
===================================================================
--- lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -1693,7 +1693,7 @@
// 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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34550.103690.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170623/b3b03a90/attachment.bin>
More information about the lldb-commits
mailing list