Skip to content

Commit 3968414

Browse files
committed
!fixup add assertion about translated ptrs.
1 parent fdf971c commit 3968414

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Analysis/LoopAccessAnalysis.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,7 @@ bool AccessAnalysis::createCheckForAccess(RuntimePointerChecking &RtCheck,
11281128

11291129
SmallVector<PointerIntPair<const SCEV *, 1, bool>> TranslatedPtrs =
11301130
findForkedPointer(PSE, StridesMap, Ptr, TheLoop);
1131+
assert(!TranslatedPtrs.empty() && "must have some translated pointers");
11311132

11321133
/// Check whether all pointers can participate in a runtime bounds check. They
11331134
/// must either be invariant or AddRecs. If ShouldCheckWrap is true, they also

0 commit comments

Comments
 (0)