[TableGen] Use return value from EmitVBRValue instead of calling GetVBRSize on the...
authorCraig Topper <craig.topper@sifive.com>
Tue, 9 Feb 2021 00:25:18 +0000 (16:25 -0800)
committerCraig Topper <craig.topper@sifive.com>
Tue, 9 Feb 2021 00:34:35 +0000 (16:34 -0800)
commit622611f7e5b2c42ad3c34aec4a77a82adf6d9e36
tree2ffc3251c4aaa36d30bafcfc356884701a05570f
parent333d2cfc707d3939f44b24f87e799a5b2fc7ca5a
[TableGen] Use return value from EmitVBRValue instead of calling GetVBRSize on the same value. Consistently use unsigned for child sizes. NFCI

getSize and setSize both use unsigned. So size_t doesn't
increase range here and might get truncated if passed to
setSize.

Also not sure why EmitVBRValue was returning uint64_t, but used
an unsigned to supply the value.
llvm/utils/TableGen/DAGISelMatcherEmitter.cpp