OSDN Git Service

Fix an incorrect chain operand when expanding INSERT_VECTOR operations through the...
authorOwen Anderson <resistor@mac.com>
Tue, 18 Nov 2014 20:50:19 +0000 (20:50 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 18 Nov 2014 20:50:19 +0000 (20:50 +0000)
Patch by Daniil Troshkov!

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

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index d050e07..a772f9c 100644 (file)
@@ -1486,7 +1486,7 @@ SDValue SelectionDAGLegalize::ExpandInsertToVectorThroughStack(SDValue Op) {
                                     StackPtr);
 
   // Store the subvector.
-  Ch = DAG.getStore(DAG.getEntryNode(), dl, Part, SubStackPtr,
+  Ch = DAG.getStore(Ch, dl, Part, SubStackPtr,
                     MachinePointerInfo(), false, false, 0);
 
   // Finally, load the updated vector.