[fast-isel] Make sure the FastLowerArguments function checks to make sure the
authorChad Rosier <mcrosier@apple.com>
Tue, 26 Feb 2013 01:05:31 +0000 (01:05 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 26 Feb 2013 01:05:31 +0000 (01:05 +0000)
arguments type is a simple type.
rdar://13290455

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176066 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp
lib/Target/X86/X86FastISel.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:
index ed17b113a67f62f41b8f849bfb978c81773673b2..b5c327006583bf117a632b4a6173fef6c4d6795f 100644 (file)
@@ -1555,6 +1555,7 @@ bool X86FastISel::FastLowerArguments() {
       return false;
 
     EVT ArgVT = TLI.getValueType(ArgTy);
+    if (!ArgVT.isSimple()) return false;
     switch (ArgVT.getSimpleVT().SimpleTy) {
     case MVT::i32:
     case MVT::i64: