llvm.org GIT mirror llvm / b55a580
allow zero-length arrays git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36863 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
283283
284284 unsigned RecordIdx = 0;
285285 for (unsigned i = 0, e = Abbv->getNumOperandInfos(); i != e; ++i) {
286 assert(RecordIdx < Vals.size() && "Invalid abbrev/record");
287286 const BitCodeAbbrevOp &Op = Abbv->getOperandInfo(i);
288287 if (Op.isLiteral() || Op.getEncoding() != BitCodeAbbrevOp::Array) {
288 assert(RecordIdx < Vals.size() && "Invalid abbrev/record");
289289 EmitAbbreviatedField(Op, Vals[RecordIdx]);
290290 ++RecordIdx;
291291 } else {