mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -1182,6 +1182,12 @@ void LifetimeChecker::doIt() {
|
||||
while (returnBB != F.end()) {
|
||||
auto *terminator = returnBB->getTerminator();
|
||||
|
||||
// If this is an unreachable block, let's ignore it.
|
||||
if (isa<UnreachableInst>(terminator)) {
|
||||
++returnBB;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isInitializedAtUse(DIMemoryUse(terminator, DIUseKind::Load, 0, 1)))
|
||||
diagnoseMissingInit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user