From 564ef2e7f49074ab280b5c6e20d10078a3d11159 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 20 Dec 2006 01:27:29 +0000 Subject: [PATCH] getLoad() and getStore() calls missed SVOffset operand. Thanks to Dan Gohman for pointing it out! llvm-svn: 32712 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index ca9c8c75462..37d7eeb1a94 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1835,7 +1835,7 @@ SDOperand SelectionDAGLowering::getLoadFrom(const Type *Ty, SDOperand Ptr, L = DAG.getVecLoad(PTy->getNumElements(), PVT, Root, Ptr, DAG.getSrcValue(SV)); } else { - L = DAG.getLoad(TLI.getValueType(Ty), Root, Ptr, SV, isVolatile); + L = DAG.getLoad(TLI.getValueType(Ty), Root, Ptr, SV, 0, isVolatile); } if (isVolatile) @@ -1851,7 +1851,7 @@ void SelectionDAGLowering::visitStore(StoreInst &I) { Value *SrcV = I.getOperand(0); SDOperand Src = getValue(SrcV); SDOperand Ptr = getValue(I.getOperand(1)); - DAG.setRoot(DAG.getStore(getRoot(), Src, Ptr, I.getOperand(1), + DAG.setRoot(DAG.getStore(getRoot(), Src, Ptr, I.getOperand(1), 0, I.isVolatile())); }