diff --git a/llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp b/llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp --- a/llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp +++ b/llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp @@ -135,8 +135,8 @@ TypeSize Offset1 = SubVecVT.getStoreSize(); SDValue Index0 = DAG->getMemBasePlusOffset(FIPtr, Offset0, Loc); SDValue Index1 = DAG->getMemBasePlusOffset(FIPtr, Offset1, Loc); - SDValue Store0 = DAG->getStore(DAG->getEntryNode(), Loc, Value, Index0, - PtrInfo.getWithOffset(Offset0)); + SDValue Store0 = + DAG->getStore(DAG->getEntryNode(), Loc, Value, Index0, PtrInfo); SDValue Store1 = DAG->getStore(DAG->getEntryNode(), Loc, Value, Index1, PtrInfo.getWithOffset(Offset1)); Optional NumBytes0 = MemoryLocation::getSizeOrUnknown( @@ -170,9 +170,9 @@ SDValue Index0 = DAG->getMemBasePlusOffset(FIPtr, Offset0, Loc); SDValue Index1 = DAG->getMemBasePlusOffset(FIPtr, Offset1, Loc); SDValue Store0 = DAG->getStore(DAG->getEntryNode(), Loc, Value, Index0, - PtrInfo.getWithOffset(Offset0)); + MachinePointerInfo(PtrInfo.getAddrSpace())); SDValue Store1 = DAG->getStore(DAG->getEntryNode(), Loc, Value, Index1, - PtrInfo.getWithOffset(Offset1)); + MachinePointerInfo(PtrInfo.getAddrSpace())); Optional NumBytes0 = MemoryLocation::getSizeOrUnknown( cast(Store0)->getMemoryVT().getStoreSize()); Optional NumBytes1 = MemoryLocation::getSizeOrUnknown(