summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-01-21 22:46:46 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-01-21 22:46:46 +0000
commit50ed9af23d9f26a0538f8496f3400a9b0c9143d8 (patch)
treebd8310c1e8a46a264ab31562a8cd1376106c64fb /llvm/lib/CodeGen
parent24785a104876e2d8db43f51e90270b5ca9c4db76 (diff)
downloadbcm5719-llvm-50ed9af23d9f26a0538f8496f3400a9b0c9143d8.tar.gz
bcm5719-llvm-50ed9af23d9f26a0538f8496f3400a9b0c9143d8.zip
CodeGen: Stop treating vectors as aggregates
Fix a crash in SjLjEHPrepare::lowerIncomingArguments caused by treating VectorType like an aggregate. It's first-class! <rdar://problem/15854596> llvm-svn: 199768
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SjLjEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SjLjEHPrepare.cpp b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
index da2e71045a3..690e8b1aa24 100644
--- a/llvm/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
@@ -251,7 +251,7 @@ void SjLjEHPrepare::lowerIncomingArguments(Function &F) {
// Aggregate types can't be cast, but are legal argument types, so we have
// to handle them differently. We use an extract/insert pair as a
// lightweight method to achieve the same goal.
- if (isa<StructType>(Ty) || isa<ArrayType>(Ty) || isa<VectorType>(Ty)) {
+ if (isa<StructType>(Ty) || isa<ArrayType>(Ty)) {
Instruction *EI = ExtractValueInst::Create(AI, 0, "", AfterAllocaInsPt);
Instruction *NI = InsertValueInst::Create(AI, EI, 0);
NI->insertAfter(EI);
OpenPOWER on IntegriCloud