Simplify this code; switch lowering shouldn't produce cases