[llvm-commits] CVS: llvm/include/llvm/Bitcode/BitstreamWriter.h
Chris Lattner
sabre at nondot.org
Sun May 6 01:22:28 PDT 2007
Changes in directory llvm/include/llvm/Bitcode:
BitstreamWriter.h updated: 1.14 -> 1.15
---
Log message:
allow zero-length arrays
---
Diffs of the changes: (+1 -1)
BitstreamWriter.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/include/llvm/Bitcode/BitstreamWriter.h
diff -u llvm/include/llvm/Bitcode/BitstreamWriter.h:1.14 llvm/include/llvm/Bitcode/BitstreamWriter.h:1.15
--- llvm/include/llvm/Bitcode/BitstreamWriter.h:1.14 Sat May 5 22:12:47 2007
+++ llvm/include/llvm/Bitcode/BitstreamWriter.h Sun May 6 03:22:10 2007
@@ -284,9 +284,9 @@
unsigned RecordIdx = 0;
for (unsigned i = 0, e = Abbv->getNumOperandInfos(); i != e; ++i) {
- assert(RecordIdx < Vals.size() && "Invalid abbrev/record");
const BitCodeAbbrevOp &Op = Abbv->getOperandInfo(i);
if (Op.isLiteral() || Op.getEncoding() != BitCodeAbbrevOp::Array) {
+ assert(RecordIdx < Vals.size() && "Invalid abbrev/record");
EmitAbbreviatedField(Op, Vals[RecordIdx]);
++RecordIdx;
} else {
More information about the llvm-commits
mailing list