general: Replace unreachable-imitating assertions with UNREACHABLE()

We can just use the self-documenting assertion for indicating
unreachable paths, instead of manually passing false and providing a
message.
This commit is contained in:
Lioncash
2019-04-12 14:51:42 -04:00
committed by MerryMage
parent 4a3d808354
commit fe95575b95
6 changed files with 17 additions and 17 deletions

View File

@@ -1018,7 +1018,7 @@ void A32EmitX64::EmitA32CoprocSendOneWord(A32EmitContext& ctx, IR::Inst* inst) {
return;
}
default:
ASSERT_MSG(false, "Unreachable");
UNREACHABLE();
}
}
@@ -1060,7 +1060,7 @@ void A32EmitX64::EmitA32CoprocSendTwoWords(A32EmitContext& ctx, IR::Inst* inst)
return;
}
default:
ASSERT_MSG(false, "Unreachable");
UNREACHABLE();
}
}
@@ -1102,7 +1102,7 @@ void A32EmitX64::EmitA32CoprocGetOneWord(A32EmitContext& ctx, IR::Inst* inst) {
return;
}
default:
ASSERT_MSG(false, "Unreachable");
UNREACHABLE();
}
}
@@ -1147,7 +1147,7 @@ void A32EmitX64::EmitA32CoprocGetTwoWords(A32EmitContext& ctx, IR::Inst* inst) {
return;
}
default:
ASSERT_MSG(false, "Unreachable");
UNREACHABLE();
}
}