diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-31 01:50:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-31 01:50:09 +0000 |
commit | a6c9de42938a26aa7edf50f4250cfd5cdca7737d (patch) | |
tree | 8cea17157491ed5d64f0ad9923f75d1a9c3e7bc9 /lib/CodeGen | |
parent | 36f4b0da9d71b06fce6277be2d9594fafdcb26e0 (diff) |
Was returning the wrong type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 922245f553..f1e36be494 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -154,7 +154,6 @@ unsigned TargetLowering::getPackedTypeBreakdown(const PackedType *PTy, // Figure out the right, legal destination reg to copy into. unsigned NumElts = PTy->getNumElements(); MVT::ValueType EltTy = getValueType(PTy->getElementType()); - PTyElementVT = EltTy; unsigned NumVectorRegs = 1; @@ -166,10 +165,12 @@ unsigned TargetLowering::getPackedTypeBreakdown(const PackedType *PTy, } MVT::ValueType VT; - if (NumElts == 1) + if (NumElts == 1) { VT = EltTy; - else - VT = getVectorType(EltTy, NumElts); + } else { + VT = getVectorType(EltTy, NumElts); + } + PTyElementVT = VT; MVT::ValueType DestVT = getTypeToTransformTo(VT); PTyLegalElementVT = DestVT; |