Changes in directory llvm/lib/Bytecode/Writer:
Writer.cpp updated: 1.147 -> 1.148 --- Log message: remove unneeded special case for bool --- Diffs of the changes: (+1 -6) Writer.cpp | 7 +------ 1 files changed, 1 insertion(+), 6 deletions(-) Index: llvm/lib/Bytecode/Writer/Writer.cpp diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.147 llvm/lib/Bytecode/Writer/Writer.cpp:1.148 --- llvm/lib/Bytecode/Writer/Writer.cpp:1.147 Fri Jan 12 13:20:46 2007 +++ llvm/lib/Bytecode/Writer/Writer.cpp Fri Jan 12 17:26:17 2007 @@ -325,12 +325,7 @@ 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())); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits