mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01: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:
parent
bc7846dad0
commit
d1e0169658
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user