fix release mode builds by building parse table

This commit is contained in:
Mitchell Hashimoto
2022-04-29 20:02:22 -07:00
parent 308050dc7d
commit a95e72eced

View File

@ -34,10 +34,7 @@ fn genTable() Table {
@setEvalBranchQuota(15000);
var result: Table = undefined;
// In debug mode, we initialize everything so that we can detect if
// anything is overwritten. No value should be set more than once
// since the state machine diagram is exact.
if (builtin.mode == .Debug) {
// Initialize everything so every state transition exists
var i: u8 = 0;
while (i < result.len) : (i += 1) {
var j: u8 = 0;
@ -45,7 +42,6 @@ fn genTable() Table {
result[i][j] = transition(.anywhere, .none);
}
}
}
// ground
{