reg_alloc: Remove unnecessary breaks after returns (#54)

This commit is contained in:
Mat M 2016-12-02 14:14:44 -05:00 committed by Merry
parent dc9707ef55
commit 95f34c683c

View file

@ -20,13 +20,10 @@ static u32 ImmediateToU32(const IR::Value& imm) {
switch (imm.GetType()) { switch (imm.GetType()) {
case IR::Type::U1: case IR::Type::U1:
return u32(imm.GetU1()); return u32(imm.GetU1());
break;
case IR::Type::U8: case IR::Type::U8:
return u32(imm.GetU8()); return u32(imm.GetU8());
break;
case IR::Type::U32: case IR::Type::U32:
return u32(imm.GetU32()); return u32(imm.GetU32());
break;
default: default:
ASSERT_MSG(false, "This should never happen."); ASSERT_MSG(false, "This should never happen.");
} }