File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -5824,14 +5824,12 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
5824
5824
// the scope is an ancestor of the scope we're currently leaving.
5825
5825
auto isAncestorScope = [](const SILDebugScope *Cur,
5826
5826
const SILDebugScope *Previous) {
5827
+ assert (Cur && " null current scope queried" );
5828
+ assert (Previous && " null previous scope queried" );
5827
5829
const SILDebugScope *Tmp = Previous;
5828
- assert (Tmp && " scope can't be null" );
5829
5830
while (Tmp) {
5830
- PointerUnion<const SILDebugScope *, SILFunction *> Parent =
5831
- Tmp->Parent ;
5831
+ auto Parent = Tmp->Parent ;
5832
5832
auto *ParentScope = Parent.dyn_cast <const SILDebugScope *>();
5833
- if (!ParentScope)
5834
- break ;
5835
5833
if (ParentScope == Cur)
5836
5834
return true ;
5837
5835
Tmp = ParentScope;
You can’t perform that action at this time.
0 commit comments