mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-22 03:48:57 +00:00
remove unneeded special case for bool
llvm-svn: 33156
This commit is contained in:
parent
996f22b99b
commit
5011520dda
@ -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()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user