From fe88aa0d148510e41bc3080dea4febcb1445855c Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 26 Feb 2013 01:05:31 +0000 Subject: [PATCH] [fast-isel] Make sure the FastLowerArguments function checks to make sure the 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 | 1 + lib/Target/X86/X86FastISel.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index b545dbc3ea1..29fcd4009af 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -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: diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index ed17b113a67..b5c32700658 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -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: -- 2.34.1