File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1254,6 +1254,8 @@ struct AccessPathWithBase {
1254
1254
return AccessBase (base, accessPath.getStorage ().getKind ());
1255
1255
}
1256
1256
1257
+ bool isValid () const { return base && accessPath.isValid (); }
1258
+
1257
1259
bool operator ==(AccessPathWithBase other) const {
1258
1260
return accessPath == other.accessPath && base == other.base ;
1259
1261
}
Original file line number Diff line number Diff line change @@ -364,6 +364,11 @@ class ManagedValue {
364
364
return bool (getValue ()) || valueAndFlag.getInt ();
365
365
}
366
366
367
+ SILFunction *getFunction () const {
368
+ assert (getValue ());
369
+ return getValue ()->getFunction ();
370
+ }
371
+
367
372
void dump () const ;
368
373
void dump (raw_ostream &os, unsigned indent = 0 ) const ;
369
374
void print (raw_ostream &os) const ;
You can’t perform that action at this time.
0 commit comments