File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
llvm/include/llvm/Bitstream Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ class BitstreamWriter {
466466
467467 EmitCode (Abbrev);
468468
469- unsigned i = 0 , e = static_cast < unsigned >( Abbv->getNumOperandInfos () );
469+ unsigned i = 0 , e = Abbv->getNumOperandInfos ();
470470 if (Code) {
471471 assert (e && " Expected non-empty abbreviation" );
472472 const BitCodeAbbrevOp &Op = Abbv->getOperandInfo (i++);
@@ -632,8 +632,7 @@ class BitstreamWriter {
632632 void EncodeAbbrev (const BitCodeAbbrev &Abbv) {
633633 EmitCode (bitc::DEFINE_ABBREV);
634634 EmitVBR (Abbv.getNumOperandInfos (), 5 );
635- for (unsigned i = 0 , e = static_cast <unsigned >(Abbv.getNumOperandInfos ());
636- i != e; ++i) {
635+ for (unsigned i = 0 , e = Abbv.getNumOperandInfos (); i != e; ++i) {
637636 const BitCodeAbbrevOp &Op = Abbv.getOperandInfo (i);
638637 Emit (Op.isLiteral (), 1 );
639638 if (Op.isLiteral ()) {
You can’t perform that action at this time.
0 commit comments