[SDAG] Start plumbing an assert into SDValues that we don't form one
[oota-llvm.git] / lib / CodeGen / SelectionDAG / DAGCombiner.cpp
index 379ea7f7f09d462d3339e629c6e8b942a7658878..a9ba5b87bb90e334c898f1de1997981a1b60ce61 100644 (file)
@@ -9088,7 +9088,7 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) {
     return false;
 
   // Only look at ends of store sequences.
-  SDValue Chain = SDValue(St, 1);
+  SDValue Chain = SDValue(St, 0);
   if (Chain->hasOneUse() && Chain->use_begin()->getOpcode() == ISD::STORE)
     return false;