summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitfe84bd659cfb5432b7be77ede5809ccb16709581 (patch)
tree35229403212f986ecca89f807027927a3040a2ca /llvm/lib/Target/ARM/ARMFastISel.cpp
parent3c6aed2d98f0213cd52ca90df40dd74ceb0302a8 (diff)
downloadbcm5719-llvm-fe84bd659cfb5432b7be77ede5809ccb16709581.tar.gz
bcm5719-llvm-fe84bd659cfb5432b7be77ede5809ccb16709581.zip
Fix a silly mistake (which trips over an assertion) in r132099. rdar://9515076
llvm-svn: 132194
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 2d2ac670b01..fc0b8d23c71 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud