Better fix for opt build

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Beaumont-Gay 2010-12-15 23:14:45 +00:00
parent 01e59888cd
commit 818b5f5dd7

View File

@ -48,9 +48,8 @@ void MCStreamer::EmitDwarfSetLineAddr(int64_t LineDelta,
void MCStreamer::EmitIntValue(uint64_t Value, unsigned Size,
unsigned AddrSpace) {
assert(Size <= 8 && "Invalid size");
unsigned Bits = 8 * Size;
(void)Bits;
assert((isUIntN(Bits, Value) || isIntN(Bits, Value)) && "Invalid size");
assert((isUIntN(8 * Size, Value) || isIntN(8 * Size, Value)) &&
"Invalid size");
char buf[8];
// FIXME: Endianness assumption.
for (unsigned i = 0; i != Size; ++i)