ARM: Make "SMC" instructions conditional on new TrustZone architecture feature.
[oota-llvm.git] / lib / Target / ARM / ARMFastISel.cpp
index b545dbc3ea1c0aaa9cd1ea7e14b528fc4b9c9b1d..29fcd4009af356fb1ff354e387f40ab4acbc980e 100644 (file)
@@ -2922,6 +2922,7 @@ bool ARMFastISel::FastLowerArguments() {
       return false;
 
     EVT ArgVT = TLI.getValueType(ArgTy);
+    if (!ArgVT.isSimple()) return false;
     switch (ArgVT.getSimpleVT().SimpleTy) {
     case MVT::i8:
     case MVT::i16: