[llvm-commits] [llvm] r112559 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Eric Christopher
echristo at apple.com
Mon Aug 30 16:48:26 PDT 2010
Author: echristo
Date: Mon Aug 30 18:48:26 2010
New Revision: 112559
URL: http://llvm.org/viewvc/llvm-project?rev=112559&view=rev
Log:
If we have an unhandled type then assert, we shouldn't get here for
things we can't handle.
Modified:
llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=112559&r1=112558&r2=112559&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Mon Aug 30 18:48:26 2010
@@ -396,7 +396,9 @@
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.
More information about the llvm-commits
mailing list