[llvm-commits] [llvm] r68616 - /llvm/trunk/include/llvm/Bitcode/BitstreamWriter.h
Douglas Gregor
dgregor at apple.com
Wed Apr 8 09:57:40 PDT 2009
Author: dgregor
Date: Wed Apr 8 11:57:40 2009
New Revision: 68616
URL: http://llvm.org/viewvc/llvm-project?rev=68616&view=rev
Log:
Use 8 instead of CHAR_BIT
Modified:
llvm/trunk/include/llvm/Bitcode/BitstreamWriter.h
Modified: llvm/trunk/include/llvm/Bitcode/BitstreamWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitstreamWriter.h?rev=68616&r1=68615&r2=68616&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/BitstreamWriter.h (original)
+++ llvm/trunk/include/llvm/Bitcode/BitstreamWriter.h Wed Apr 8 11:57:40 2009
@@ -80,7 +80,7 @@
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.
More information about the llvm-commits
mailing list