summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2017-06-23 18:20:13 +0000
committerMehdi Amini <joker.eph@gmail.com>2017-06-23 18:20:13 +0000
commitd16a6e32fb4495b038cd922192053c005cbd738d (patch)
treedb03099b38c39e13b06f68ed45d79446ec73bfc5 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parentc26105e3c8510336c012c4b02fdaddba1a9c499a (diff)
downloadbcm5719-llvm-d16a6e32fb4495b038cd922192053c005cbd738d.tar.gz
bcm5719-llvm-d16a6e32fb4495b038cd922192053c005cbd738d.zip
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 llvm-svn: 306134
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index e6d3379e53d..20e9a930b48 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -1693,7 +1693,7 @@ size_t ObjectFileELF::GetSectionHeaderInfo(SectionHeaderColl &section_headers,
// 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;
}
OpenPOWER on IntegriCloud