projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7108dce
)
allow zero-length arrays
author
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 08:22:10 +0000
(08:22 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 08:22:10 +0000
(08:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36863
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Bitcode/BitstreamWriter.h
patch
|
blob
|
history
diff --git
a/include/llvm/Bitcode/BitstreamWriter.h
b/include/llvm/Bitcode/BitstreamWriter.h
index 20bcc1c8b547b36c03706ddc7edea6da94bf617d..64598edbd562d02efe541670c20d96e2c76bd946 100644
(file)
--- a/
include/llvm/Bitcode/BitstreamWriter.h
+++ b/
include/llvm/Bitcode/BitstreamWriter.h
@@
-284,9
+284,9
@@
public:
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 {