diff options
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 4c2e1ed05ec..25e43d92eae 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -5091,7 +5091,8 @@ SDValue SelectionDAGLegalize::ExpandExtractFromVectorThroughStack(SDValue Op) {    SDValue Ch = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, NULL, 0);    // Add the offset to the index. -  unsigned EltSize = Op.getValueType().getSizeInBits()/8; +  unsigned EltSize = +      Vec.getValueType().getVectorElementType().getSizeInBits()/8;    Idx = DAG.getNode(ISD::MUL, dl, Idx.getValueType(), Idx,                      DAG.getConstant(EltSize, Idx.getValueType())); | 

