1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Remove assert with tautological compare from XCOFFObjectWriter.

Remove assert of 'Sec->getCSectType() <= 0x07u' added in r369454, since its
always true.

llvm-svn: 369462
This commit is contained in:
Sean Fertile 2019-08-20 22:23:34 +00:00
parent bc7846dad0
commit d1e0169658

View File

@ -465,7 +465,6 @@ void XCOFFObjectWriter::assignAddressesAndIndices(
uint8_t getEncodedType(const MCSectionXCOFF *Sec) { uint8_t getEncodedType(const MCSectionXCOFF *Sec) {
unsigned Align = Sec->getAlignment(); unsigned Align = Sec->getAlignment();
assert(isPowerOf2_32(Align) && "Alignment must be a power of 2."); assert(isPowerOf2_32(Align) && "Alignment must be a power of 2.");
assert((Sec->getCSectType() <= 0x07u) && "csect type exceeds 3 bits.");
unsigned Log2Align = Log2_32(Align); unsigned Log2Align = Log2_32(Align);
// Result is a number in the range [0, 31] which fits in the 5 least // Result is a number in the range [0, 31] which fits in the 5 least
// significant bits. Shift this value into the 5 most significant bits, and // significant bits. Shift this value into the 5 most significant bits, and