1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

If we have an unhandled type then assert, we shouldn't get here for

things we can't handle.

llvm-svn: 112559
This commit is contained in:
Eric Christopher 2010-08-30 23:48:26 +00:00
parent d261381db5
commit 21b355b522

View File

@ -396,7 +396,9 @@ bool ARMFastISel::ARMEmitLoad(EVT VT, unsigned &ResultReg,
assert(VT.isSimple() && "Non-simple types are invalid here!");
switch (VT.getSimpleVT().SimpleTy) {
default: return false;
default:
assert(false && "Trying to emit for an unhandled type!");
return false;
case MVT::i32: {
ResultReg = createResultReg(ARM::GPRRegisterClass);
// TODO: Fix the Addressing modes so that these can share some code.