[llvm] r369462 - Remove assert with tautological compare from XCOFFObjectWriter.
Sean Fertile via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 15:23:34 PDT 2019
Author: sfertile
Date: Tue Aug 20 15:23:34 2019
New Revision: 369462
URL: http://llvm.org/viewvc/llvm-project?rev=369462&view=rev
Log:
Remove assert with tautological compare from XCOFFObjectWriter.
Remove assert of 'Sec->getCSectType() <= 0x07u' added in r369454, since its
always true.
Modified:
llvm/trunk/lib/MC/XCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/XCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/XCOFFObjectWriter.cpp?rev=369462&r1=369461&r2=369462&view=diff
==============================================================================
--- llvm/trunk/lib/MC/XCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/XCOFFObjectWriter.cpp Tue Aug 20 15:23:34 2019
@@ -465,7 +465,6 @@ void XCOFFObjectWriter::assignAddressesA
uint8_t getEncodedType(const MCSectionXCOFF *Sec) {
unsigned Align = Sec->getAlignment();
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);
// 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
More information about the llvm-commits
mailing list