[PATCH] D28669: [ARM] Remove ubig32_t cast from ARMAttributeParser
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 03:46:20 PST 2017
samparker created this revision.
samparker added a subscriber: llvm-commits.
Herald added subscribers: rengolin, aemerson.
Multiple buildbots are failing to cast ubig32_t (no conversion from 'const llvm::support::ubig32_t' to 'const llvm::support::ulittle32_t) so i'm removing it.
https://reviews.llvm.org/D28669
Files:
lib/Support/ARMAttributeParser.cpp
Index: lib/Support/ARMAttributeParser.cpp
===================================================================
--- lib/Support/ARMAttributeParser.cpp
+++ lib/Support/ARMAttributeParser.cpp
@@ -685,9 +685,8 @@
unsigned SectionNumber = 0;
while (Offset < Section.size()) {
- uint32_t SectionLength = isLittle ?
- *reinterpret_cast<const support::ulittle32_t*>(Section.data() + Offset) :
- *reinterpret_cast<const support::ubig32_t*>(Section.data() + Offset);
+ uint32_t SectionLength =
+ *reinterpret_cast<const support::ulittle32_t*>(Section.data() + Offset);
if (SW) {
SW->startLine() << "Section " << ++SectionNumber << " {\n";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28669.84275.patch
Type: text/x-patch
Size: 671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170113/c5c9d47d/attachment.bin>
More information about the llvm-commits
mailing list