File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -755,17 +755,18 @@ class SILDebugScope;
755
755
756
756
// / A SILLocation paired with a SILDebugScope.
757
757
class SILDebugLocation {
758
- const SILDebugScope *Scope = nullptr ;
759
- SILLocation Location ;
758
+ const SILDebugScope *debugScope ;
759
+ SILLocation location ;
760
760
761
761
public:
762
762
SILDebugLocation ()
763
- : Scope(nullptr ),
764
- Location (RegularLocation::getAutoGeneratedLocation()) {}
765
- SILDebugLocation (SILLocation Loc, const SILDebugScope *DS)
766
- : Scope(DS), Location(Loc) {}
767
- SILLocation getLocation () const { return Location; }
768
- const SILDebugScope *getScope () const { return Scope; }
763
+ : debugScope(nullptr ),
764
+ location (RegularLocation::getAutoGeneratedLocation()) {}
765
+ SILDebugLocation (SILLocation location, const SILDebugScope *debugScope)
766
+ : debugScope(debugScope), location(location) {}
767
+ SILLocation getLocation () const { return location; }
768
+ const SILDebugScope *getScope () const { return debugScope; }
769
+ operator bool () const { return bool (location) && debugScope; }
769
770
};
770
771
771
772
} // end swift namespace
You can’t perform that action at this time.
0 commit comments