diff options
| author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-08-12 22:59:14 +0000 |
|---|---|---|
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-08-12 22:59:14 +0000 |
| commit | ef1b5334b2b34f2c07dcadabe686d95e88e73cc9 (patch) | |
| tree | cf81c45c531b515cc3d5ae49202528a4b58463ec | |
| parent | a5e5698441ac4034ec5c42cde5c38b0bb7a704a2 (diff) | |
| download | bcm5719-llvm-ef1b5334b2b34f2c07dcadabe686d95e88e73cc9.tar.gz bcm5719-llvm-ef1b5334b2b34f2c07dcadabe686d95e88e73cc9.zip | |
[Object/ELF] sh_type is not a bitfield. Fixes RuntimeDyld test failure on ARM.
llvm-svn: 188220
| -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; } |

