diff options
author | Duncan Sands <baldrick@free.fr> | 2012-08-21 16:20:37 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-08-21 16:20:37 +0000 |
commit | 578d5f4b80a52906a31f1b22329bc2113b79a866 (patch) | |
tree | a138c0a0b674a9108c0c3e9a7a502fc0cb5055ad /include | |
parent | 35907e98626b33f6406dc498201fc59ced282c8a (diff) | |
download | external_llvm-578d5f4b80a52906a31f1b22329bc2113b79a866.zip external_llvm-578d5f4b80a52906a31f1b22329bc2113b79a866.tar.gz external_llvm-578d5f4b80a52906a31f1b22329bc2113b79a866.tar.bz2 |
Pacify PVS-Studio by changing the type rather than doing a cast, a tweak
suggested by David Blaikie.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Bitcode/BitstreamWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/BitstreamWriter.h b/include/llvm/Bitcode/BitstreamWriter.h index 65933a2..dea118f 100644 --- a/include/llvm/Bitcode/BitstreamWriter.h +++ b/include/llvm/Bitcode/BitstreamWriter.h @@ -172,7 +172,7 @@ public: if ((uint32_t)Val == Val) return EmitVBR((uint32_t)Val, NumBits); - uint64_t Threshold = uint64_t(1U << (NumBits-1)); + uint32_t Threshold = 1U << (NumBits-1); // Emit the bits with VBR encoding, NumBits-1 bits at a time. while (Val >= Threshold) { |