llvm.org GIT mirror llvm / 9731c7a
Simplify code a bit. NFC. Thanks to Sean Silva for the suggestion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221892 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
1 changed file(s) with 3 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
333333 return;
334334 }
335335
336 // Handle big-endian byte-swapping if necessary.
337 support::detail::packed_endian_specific_integral<
338 word_t, support::little, support::unaligned> EndianValue;
339 memcpy(&EndianValue, Array, sizeof(Array));
340
341 CurWord = EndianValue;
336 CurWord =
337 support::endian::read(
338 Array);
342339 NextChar += BytesRead;
343340 BitsInCurWord = BytesRead * 8;
344341 }