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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user