aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-05-27 18:02:04 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-05-27 18:02:04 +0000
commita4d487fc1e2f95f4b47ad472071bfdd484eb3b40 (patch)
treecb86b58078abbc2e18153e8632850091f5cc4c86 /lib/Target/ARM/ARMFastISel.cpp
parentb58128e2b2375173aafb07905bd53014d622e4ba (diff)
Fix a silly mistake (which trips over an assertion) in r132099. rdar://9515076
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index 2d2ac670b0..fc0b8d23c7 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -1981,6 +1981,8 @@ bool ARMFastISel::SelectIntCast(const Instruction *I) {
unsigned Opc;
bool isZext = isa<ZExtInst>(I);
bool isBoolZext = false;
+ if (!SrcVT.isSimple())
+ return false;
switch (SrcVT.getSimpleVT().SimpleTy) {
default: return false;
case MVT::i16: