OSDN Git Service

[x86] Cleanup an unused variable by actually using it in the non-asserts
authorChandler Carruth <chandlerc@gmail.com>
Tue, 16 Sep 2014 02:14:51 +0000 (02:14 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 16 Sep 2014 02:14:51 +0000 (02:14 +0000)
place where it was needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217854 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index f7c08a2..1b0e4fc 100644 (file)
@@ -20036,7 +20036,7 @@ static SDValue combineShuffleToAddSub(SDNode *N, SelectionDAG &DAG) {
   // FIXME: Munge the inputs through no-op shuffles that drop the undef lanes to
   // allow nuking any instructions that feed only those lanes.
 
-  return DAG.getNode(X86ISD::ADDSUB, DL, N->getValueType(0), LHS, RHS);
+  return DAG.getNode(X86ISD::ADDSUB, DL, VT, LHS, RHS);
 }
 
 /// PerformShuffleCombine - Performs several different shuffle combines.