The following valid code crashes Clang in CodeGen:
void other_test() { switch(0) { case 0: do { default:; } while(0); } }
The problem is that when we constant fold the switch into the case 0: case, the default: attempts to find the enclosing switch it is attached to, which does not exist. The solution is to ignore the default and emit it's child statement. (Which is the exact same solution as in the case statement, in EmitCaseStmt just above this)
Fixes PR28609.