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 35c4483 commit 53a43f8Copy full SHA for 53a43f8
llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
@@ -222,9 +222,11 @@ class ConstantTerminatorFoldingImpl {
222
// wasn't able to form one because the loop can be entered through an
223
// indirectbr we cannot continue.
224
if (!L.getLoopPreheader()) {
225
- assert(any_of(predecessors(L.getHeader()), [&](BasicBlock *Pred) {
226
- return isa<IndirectBrInst>(Pred->getTerminator());
227
- }) && "Loop should have preheader if it is not entered indirectly");
+ assert(any_of(predecessors(L.getHeader()),
+ [&](BasicBlock *Pred) {
+ return isa<IndirectBrInst>(Pred->getTerminator());
228
+ }) &&
229
+ "Loop should have preheader if it is not entered indirectly");
230
HasIndirectEntry = true;
231
return;
232
}
0 commit comments