aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2010-12-15 23:14:45 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2010-12-15 23:14:45 +0000
commit818b5f5dd7979b097564f829896353df286127ff (patch)
treefef0a0909e52441a6fbc4d52b581fb67bab9a6a7 /lib/MC/MCStreamer.cpp
parent01e59888cd0001619bec0994257577d732deae77 (diff)
downloadexternal_llvm-818b5f5dd7979b097564f829896353df286127ff.zip
external_llvm-818b5f5dd7979b097564f829896353df286127ff.tar.gz
external_llvm-818b5f5dd7979b097564f829896353df286127ff.tar.bz2
Better fix for opt build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCStreamer.cpp')
-rw-r--r--lib/MC/MCStreamer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp
index 9b3f379..076b4d6 100644
--- a/lib/MC/MCStreamer.cpp
+++ b/lib/MC/MCStreamer.cpp
@@ -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)