Fix opt -Werror build

llvm-svn: 121904
This commit is contained in:
Matt Beaumont-Gay 2010-12-15 22:21:20 +00:00
parent b7ff5a0f20
commit 15f96baa01
1 changed files with 1 additions and 0 deletions
llvm/lib/MC

View File

@ -49,6 +49,7 @@ 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");
char buf[8];
// FIXME: Endianness assumption.