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.
1 parent 38c5af0 commit d7b6fcfCopy full SHA for d7b6fcf
llvm/utils/TableGen/DecoderTableEmitter.cpp
@@ -58,6 +58,8 @@ DecoderTableEmitter::computeNodeSize(const DecoderTreeNode *Node) const {
58
Size += getULEB128Size(Val) + getULEB128Size(ChildSize) + ChildSize;
59
}
60
61
+ // The last child is emitted with sentinel value 0 instead of the size.
62
+ // See the comment in emitSwitchFieldNode.
63
auto [Val, Child] = *std::prev(N->case_end());
64
unsigned ChildSize = computeNodeSize(Child);
65
Size += getULEB128Size(Val) + getULEB128Size(0) + ChildSize;
0 commit comments