Skip to content

Commit 30a159b

Browse files
committed
[NFC] Used already cast value.
1 parent 6b89397 commit 30a159b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Transforms/DeadCodeElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void DCE::markLive() {
295295
continue;
296296
}
297297
// If not populate reborrowDependencies for this borrow
298-
findReborrowDependencies(cast<BeginBorrowInst>(&I));
298+
findReborrowDependencies(borrowInst);
299299
break;
300300
}
301301
default:

0 commit comments

Comments
 (0)