We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
layout
1 parent 2ecc51c commit a3676edCopy full SHA for a3676ed
llvm/utils/TableGen/Basic/SequenceToOffsetTable.h
@@ -116,9 +116,12 @@ class SequenceToOffsetTable {
116
for (typename SeqMap::iterator I = Seqs.begin(), E = Seqs.end(); I != E;
117
++I) {
118
I->second = Entries;
119
- // Include space for a terminator.
120
- Entries += I->first.size() + Terminator.has_value();
+ Entries += I->first.size();
121
}
+
122
+ // Include space for terminators.
123
+ if (Terminator)
124
+ Entries += Seqs.size();
125
126
127
/// get - Returns the offset of Seq in the final table.
0 commit comments