[PATCH] D28669: [ARM] Remove ubig32_t cast from ARMAttributeParser
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 03:58:30 PST 2017
RKSimon added inline comments.
================
Comment at: lib/Support/ARMAttributeParser.cpp:689
+ uint32_t SectionLength =
+ *reinterpret_cast<const support::ulittle32_t*>(Section.data() + Offset);
----------------
If you replace the ternary operator with an if - else pair - then MSVC would be happy with the casts and you keep endian support
https://reviews.llvm.org/D28669
More information about the llvm-commits
mailing list