diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index 10a151d19cf..b7987b2e944 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(CPV->getType())->getBitWidth(); - if (NumBits == 1) - if (cast(CPV)->getZExtValue()) - output_vbr(1U); - else - output_vbr(0U); - else if (NumBits <= 32) + if (NumBits <= 32) output_vbr(uint32_t(cast(CPV)->getZExtValue())); else if (NumBits <= 64) output_vbr(uint64_t(cast(CPV)->getZExtValue()));