Changes in directory llvm/lib/Target:
TargetLowering.cpp updated: 1.50 -> 1.51 --- Log message: Was returning the wrong type. --- Diffs of the changes: (+5 -4) TargetLowering.cpp | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) Index: llvm/lib/Target/TargetLowering.cpp diff -u llvm/lib/Target/TargetLowering.cpp:1.50 llvm/lib/Target/TargetLowering.cpp:1.51 --- llvm/lib/Target/TargetLowering.cpp:1.50 Thu Mar 30 18:46:36 2006 +++ llvm/lib/Target/TargetLowering.cpp Thu Mar 30 19:50:09 2006 @@ -154,7 +154,6 @@ // 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 @@ } 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; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits