aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Bitcode
diff options
context:
space:
mode:
authorDouglas Gregor <doug.gregor@gmail.com>2009-04-08 16:57:40 +0000
committerDouglas Gregor <doug.gregor@gmail.com>2009-04-08 16:57:40 +0000
commit94ffaf8b34f6a16b8e11fa12aa8448f8cd8cce20 (patch)
tree1e3c842b36870f14b1f6c77a2c4fbf4473e5eaac /include/llvm/Bitcode
parent05bb215cb10fab8a4da75fc78ff04623ccd0f688 (diff)
downloadexternal_llvm-94ffaf8b34f6a16b8e11fa12aa8448f8cd8cce20.zip
external_llvm-94ffaf8b34f6a16b8e11fa12aa8448f8cd8cce20.tar.gz
external_llvm-94ffaf8b34f6a16b8e11fa12aa8448f8cd8cce20.tar.bz2
Use 8 instead of CHAR_BIT
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode')
-rw-r--r--include/llvm/Bitcode/BitstreamWriter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/BitstreamWriter.h b/include/llvm/Bitcode/BitstreamWriter.h
index 49fce1f..55dd4dd 100644
--- a/include/llvm/Bitcode/BitstreamWriter.h
+++ b/include/llvm/Bitcode/BitstreamWriter.h
@@ -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.