diff options
author | Eric Christopher <echristo@apple.com> | 2010-08-30 23:48:26 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-08-30 23:48:26 +0000 |
commit | 548d1bb97e6510d1e16299058a4bacb068ede13a (patch) | |
tree | 358773466f911a75d12af7472c2609ef85ea283b /lib | |
parent | 39429e2b5175d3f34c2a1cc693fefd9a4fc6919e (diff) | |
download | external_llvm-548d1bb97e6510d1e16299058a4bacb068ede13a.zip external_llvm-548d1bb97e6510d1e16299058a4bacb068ede13a.tar.gz external_llvm-548d1bb97e6510d1e16299058a4bacb068ede13a.tar.bz2 |
If we have an unhandled type then assert, we shouldn't get here for
things we can't handle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index 10c7e5d..a99f05f 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/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. |