File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4962,6 +4962,8 @@ class AssignOrInitInst
4962
4962
SILValue getInitializer () const { return Operands[2 ].get (); }
4963
4963
SILValue getSetter () { return Operands[3 ].get (); }
4964
4964
4965
+ VarDecl *getProperty () const ;
4966
+
4965
4967
Mode getMode () const {
4966
4968
return Mode (sharedUInt8 ().AssignOrInitInst .mode );
4967
4969
}
Original file line number Diff line number Diff line change @@ -1283,6 +1283,12 @@ bool AssignOrInitInst::isPropertyAlreadyInitialized(unsigned propertyIdx) {
1283
1283
return Assignments.test (propertyIdx);
1284
1284
}
1285
1285
1286
+ VarDecl *AssignOrInitInst::getProperty () const {
1287
+ auto *accessor = getReferencedInitAccessor ();
1288
+ assert (accessor);
1289
+ return cast<VarDecl>(accessor->getStorage ());
1290
+ }
1291
+
1286
1292
StringRef AssignOrInitInst::getPropertyName () const {
1287
1293
auto *accessor = getReferencedInitAccessor ();
1288
1294
assert (accessor);
You can’t perform that action at this time.
0 commit comments