summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-02-26 01:05:31 +0000
committerChad Rosier <mcrosier@apple.com>2013-02-26 01:05:31 +0000
commit1b33e8d63e829a00e78a152309058ebfb8c43e36 (patch)
tree6ef16a2fe36ece5af2ebe672ba96f6916734d972 /llvm/lib/Target/X86/X86FastISel.cpp
parent11080005e8c8d287af06e7cdeb02572b6a8d7c7e (diff)
downloadbcm5719-llvm-1b33e8d63e829a00e78a152309058ebfb8c43e36.tar.gz
bcm5719-llvm-1b33e8d63e829a00e78a152309058ebfb8c43e36.zip
[fast-isel] Make sure the FastLowerArguments function checks to make sure the
arguments type is a simple type. rdar://13290455 llvm-svn: 176066
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index ed17b113a67..b5c32700658 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud