diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 5dc5b025599b1..a2bbe6fb11c09 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -1431,8 +1431,8 @@ void AccessAnalysis::processMemAccesses() { typedef SmallVector ValueVector; ValueVector TempObjects; - UnderlyingObjects[Ptr] = {}; SmallVector &UOs = UnderlyingObjects[Ptr]; + UOs = {}; ::getUnderlyingObjects(Ptr, UOs, LI); LLVM_DEBUG(dbgs() << "Underlying objects for pointer " << *Ptr << "\n");