forked from OSchip/llvm-project
Simplify code a bit. NFC.
Thanks to Sean Silva for the suggestion. llvm-svn: 221892
This commit is contained in:
parent
1e2e444357
commit
95357d6053
|
@ -334,12 +334,9 @@ public:
|
|||
return;
|
||||
}
|
||||
|
||||
// Handle big-endian byte-swapping if necessary.
|
||||
support::detail::packed_endian_specific_integral<
|
||||
word_t, support::little, support::unaligned> EndianValue;
|
||||
memcpy(&EndianValue, Array, sizeof(Array));
|
||||
|
||||
CurWord = EndianValue;
|
||||
CurWord =
|
||||
support::endian::read<word_t, support::little, support::unaligned>(
|
||||
Array);
|
||||
NextChar += BytesRead;
|
||||
BitsInCurWord = BytesRead * 8;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue