From 2f992d13ea0ccfe3f9ce359b4c534d9b34b0e7cd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 18 Apr 2009 20:48:07 +0000 Subject: [PATCH] Fix PR3898, which manifests as failures on are an Xcore, patch by Jakob Stoklund Olesen! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69472 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 7b83a127074..96f815f599b 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -676,7 +676,7 @@ unsigned TargetLowering::getVectorTypeBreakdown(MVT VT, NewVT = EltTy; IntermediateVT = NewVT; - MVT DestVT = getTypeToTransformTo(NewVT); + MVT DestVT = getRegisterType(NewVT); RegisterVT = DestVT; if (DestVT.bitsLT(NewVT)) { // Value is expanded, e.g. i64 -> i16.