From bbd1098989e2661bbbf3a6c9504c7b7b74b72b82 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 30 Aug 2010 23:48:26 +0000 Subject: If we have an unhandled type then assert, we shouldn't get here for things we can't handle. llvm-svn: 112559 --- llvm/lib/Target/ARM/ARMFastISel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp') diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp index 10c7e5d6d27..a99f05fc053 100644 --- a/llvm/lib/Target/ARM/ARMFastISel.cpp +++ b/llvm/lib/Target/ARM/ARMFastISel.cpp @@ -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. -- cgit v1.2.3