File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -55,3 +55,10 @@ SILFunction *SILDebugScope::getParentFunction() const {
55
55
return ParentScope->getParentFunction ();
56
56
return Parent.get <SILFunction *>();
57
57
}
58
+
59
+ // / Determine whether an instruction may not have a SILDebugScope.
60
+ bool swift::maybeScopeless (SILInstruction &I) {
61
+ if (I.getFunction ()->isBare ())
62
+ return true ;
63
+ return !isa<DebugValueInst>(I) && !isa<DebugValueAddrInst>(I);
64
+ }
Original file line number Diff line number Diff line change @@ -5527,10 +5527,3 @@ void SILModule::verify() const {
5527
5527
prop.verify (*this );
5528
5528
}
5529
5529
}
5530
-
5531
- // / Determine whether an instruction may not have a SILDebugScope.
5532
- bool swift::maybeScopeless (SILInstruction &I) {
5533
- if (I.getFunction ()->isBare ())
5534
- return true ;
5535
- return !isa<DebugValueInst>(I) && !isa<DebugValueAddrInst>(I);
5536
- }
You can’t perform that action at this time.
0 commit comments