We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 204252e commit 35ee462Copy full SHA for 35ee462
llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -1325,6 +1325,8 @@ bool AccessAnalysis::canCheckPtrAtRT(
1325
RtCheck.Need = CanDoRT ? RtCheck.getNumberOfChecks() != 0 : MayNeedRTCheck;
1326
1327
bool CanDoRTIfNeeded = !RtCheck.Need || CanDoRT;
1328
+ assert(CanDoRTIfNeeded == (CanDoRT || !MayNeedRTCheck) &&
1329
+ "CanDoRTIfNeeded depends on RtCheck.Need");
1330
if (!CanDoRTIfNeeded)
1331
RtCheck.reset();
1332
return CanDoRTIfNeeded;
0 commit comments