Use 8 instead of CHAR_BIT
authorDouglas Gregor <dgregor@apple.com>
Wed, 8 Apr 2009 16:57:40 +0000 (16:57 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 8 Apr 2009 16:57:40 +0000 (16:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68616 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bitcode/BitstreamWriter.h

index 49fce1fcc81bcc822b7e98c80338e3fbc224ff57..55dd4dd49b0f817ce05005bf2affcfc54cd6cd64 100644 (file)
@@ -80,7 +80,7 @@ public:
   std::vector<unsigned char> &getBuffer() { return Out; }
 
   /// \brief Retrieve the current position in the stream, in bits.
-  uint64_t GetCurrentBitNo() const { return Out.size() * CHAR_BIT + CurBit; }
+  uint64_t GetCurrentBitNo() const { return Out.size() * 8 + CurBit; }
 
   //===--------------------------------------------------------------------===//
   // Basic Primitives for emitting bits to the stream.