diff options
| -rw-r--r-- | llvm/include/llvm/Object/ELFObjectFile.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/include/llvm/Object/ELFObjectFile.h b/llvm/include/llvm/Object/ELFObjectFile.h index 08cac04ac6d..f799f7e26a1 100644 --- a/llvm/include/llvm/Object/ELFObjectFile.h +++ b/llvm/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;  } | 

