diff options
Diffstat (limited to 'include/llvm/Object/ELFObjectFile.h')
-rw-r--r-- | include/llvm/Object/ELFObjectFile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 08cac04..f799f7e 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -577,14 +577,14 @@ ELFObjectFile<ELFT>::isSectionRequiredForExecution(DataRefImpl Sec, template <class ELFT> error_code ELFObjectFile<ELFT>::isSectionVirtual(DataRefImpl Sec, bool &Result) const { - Result = toELFShdrIter(Sec)->sh_type & ELF::SHT_NOBITS; + Result = toELFShdrIter(Sec)->sh_type == ELF::SHT_NOBITS; return object_error::success; } template <class ELFT> error_code ELFObjectFile<ELFT>::isSectionZeroInit(DataRefImpl Sec, bool &Result) const { - Result = toELFShdrIter(Sec)->sh_type & ELF::SHT_NOBITS; + Result = toELFShdrIter(Sec)->sh_type == ELF::SHT_NOBITS; return object_error::success; } |