Convert some assert(0) to llvm_unreachable or fold an 'if' condition into the assert.