mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-19 01:48:34 +00:00
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
This commit is contained in:
parent
a9fbbb48bc
commit
9731c7a016
@ -334,12 +334,9 @@ public:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle big-endian byte-swapping if necessary.
|
CurWord =
|
||||||
support::detail::packed_endian_specific_integral<
|
support::endian::read<word_t, support::little, support::unaligned>(
|
||||||
word_t, support::little, support::unaligned> EndianValue;
|
Array);
|
||||||
memcpy(&EndianValue, Array, sizeof(Array));
|
|
||||||
|
|
||||||
CurWord = EndianValue;
|
|
||||||
NextChar += BytesRead;
|
NextChar += BytesRead;
|
||||||
BitsInCurWord = BytesRead * 8;
|
BitsInCurWord = BytesRead * 8;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user