aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-12 23:26:17 +0000
committerChris Lattner <sabre@nondot.org>2007-01-12 23:26:17 +0000
commitfb939319398aa4a9fbb65d0c00d9eaf6d0dd182b (patch)
treea7b07426111df9e7995c1167b8f1e37a6763171d /lib/Bytecode/Writer
parenta55866f2ccf3fec442b08a59ad46c82b4a70cd9a (diff)
remove unneeded special case for bool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer')
-rw-r--r--lib/Bytecode/Writer/Writer.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index 10a151d19c..b7987b2e94 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/lib/Bytecode/Writer/Writer.cpp
@@ -325,12 +325,7 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
switch (CPV->getType()->getTypeID()) {
case Type::IntegerTyID: { // Integer types...
unsigned NumBits = cast<IntegerType>(CPV->getType())->getBitWidth();
- if (NumBits == 1)
- if (cast<ConstantInt>(CPV)->getZExtValue())
- output_vbr(1U);
- else
- output_vbr(0U);
- else if (NumBits <= 32)
+ if (NumBits <= 32)
output_vbr(uint32_t(cast<ConstantInt>(CPV)->getZExtValue()));
else if (NumBits <= 64)
output_vbr(uint64_t(cast<ConstantInt>(CPV)->getZExtValue()));