[TableGen] Rewrite an assert to not do a bunch unsigned math and then try to ensure...
authorCraig Topper <craig.topper@gmail.com>
Tue, 26 May 2015 08:07:49 +0000 (08:07 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 26 May 2015 08:07:49 +0000 (08:07 +0000)
commitc9739ec212365e5197eb87cb3a50d256df626dc4
treeebd134fd59fbe23baf0c1c7dfe721019c3d340ee
parent88008cb7109800fb9f09d3ced539bc574d8eaf73
[TableGen] Rewrite an assert to not do a bunch unsigned math and then try to ensure the result is a positive number.

I think the fact that it was explicitly excluding 0 kept this from being a tautology. The exclusion of 0 for the old math was also a bug that's easily hit if the description gets split into multiple lines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238186 91177308-0d34-0410-b5e6-96231b3b80d8
lib/TableGen/TableGenBackend.cpp