File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
llvm/lib/CodeGen/SelectionDAG Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -2210,15 +2210,12 @@ Register FastISel::fastEmitZExtFromI1(MVT VT, unsigned Op0) {
2210
2210
// / might result in multiple MBB's for one BB. As such, the start of the
2211
2211
// / BB might correspond to a different MBB than the end.
2212
2212
bool FastISel::handlePHINodesInSuccessorBlocks (const BasicBlock *LLVMBB) {
2213
- const Instruction *TI = LLVMBB->getTerminator ();
2214
-
2215
2213
SmallPtrSet<MachineBasicBlock *, 4 > SuccsHandled;
2216
2214
FuncInfo.OrigNumPHINodesToUpdate = FuncInfo.PHINodesToUpdate .size ();
2217
2215
2218
2216
// Check successor nodes' PHI nodes that expect a constant to be available
2219
2217
// from this block.
2220
- for (unsigned succ = 0 , e = TI->getNumSuccessors (); succ != e; ++succ) {
2221
- const BasicBlock *SuccBB = TI->getSuccessor (succ);
2218
+ for (const BasicBlock *SuccBB : successors (LLVMBB)) {
2222
2219
if (!isa<PHINode>(SuccBB->begin ()))
2223
2220
continue ;
2224
2221
MachineBasicBlock *SuccMBB = FuncInfo.MBBMap [SuccBB];
You can’t perform that action at this time.
0 commit comments