summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-08-12 22:59:14 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-08-12 22:59:14 +0000
commitef1b5334b2b34f2c07dcadabe686d95e88e73cc9 (patch)
treecf81c45c531b515cc3d5ae49202528a4b58463ec
parenta5e5698441ac4034ec5c42cde5c38b0bb7a704a2 (diff)
downloadbcm5719-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.h4
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;
}
OpenPOWER on IntegriCloud