Skip to content

Commit 4d5faa9

Browse files
Chengjunpnikic
andcommitted
Update llvm/lib/Transforms/Utils/Local.cpp
Co-authored-by: Nikita Popov <[email protected]>
1 parent f07e435 commit 4d5faa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/Local.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ static bool introduceTooComplexPhi(BasicBlock *BB) {
10601060
int NumPreds = pred_size(BB);
10611061
auto *Succ = BB->getTerminator()->getSuccessor(0);
10621062
for (auto &Phi : Succ->phis()) {
1063-
auto BlockIdx = Phi.getBasicBlockIndex(BB);
1063+
int BlockIdx = Phi.getBasicBlockIndex(BB);
10641064
if (BlockIdx >= 0) {
10651065
// If the incoming value is a phi and the phi is defined in BB,
10661066
// then removing BB will not increase the total phi entries of the ir.

0 commit comments

Comments
 (0)