Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2023-08-04 18:59:37 -07:00
70 changed files with 278 additions and 257 deletions

View File

@@ -1454,7 +1454,7 @@ void LifetimeChecker::handleStoreUse(unsigned UseID) {
Type selfTy;
SILLocation fnLoc = TheMemory.getFunction().getLocation();
if (auto *ctor = fnLoc.getAsASTNode<ConstructorDecl>())
selfTy = ctor->getImplicitSelfDecl()->getType();
selfTy = ctor->getImplicitSelfDecl()->getTypeInContext();
else
selfTy = TheMemory.getASTType();