From 0648f54b889e0f627172acaa1d622f8d3d9f5409 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 8 Apr 2009 16:57:40 +0000 Subject: [PATCH] Use 8 instead of CHAR_BIT git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68616 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Bitcode/BitstreamWriter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Bitcode/BitstreamWriter.h b/include/llvm/Bitcode/BitstreamWriter.h index 49fce1fcc81..55dd4dd49b0 100644 --- a/include/llvm/Bitcode/BitstreamWriter.h +++ b/include/llvm/Bitcode/BitstreamWriter.h @@ -80,7 +80,7 @@ public: std::vector &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.