From fe84bd659cfb5432b7be77ede5809ccb16709581 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 27 May 2011 18:02:04 +0000 Subject: Fix a silly mistake (which trips over an assertion) in r132099. rdar://9515076 llvm-svn: 132194 --- llvm/lib/Target/ARM/ARMFastISel.cpp | 2 ++ 1 file changed, 2 insertions(+) (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 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(I); bool isBoolZext = false; + if (!SrcVT.isSimple()) + return false; switch (SrcVT.getSimpleVT().SimpleTy) { default: return false; case MVT::i16: -- cgit v1.2.3