File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -5465,13 +5465,6 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
5465
5465
return ;
5466
5466
5467
5467
const SILDebugScope *LastSeenScope = nullptr ;
5468
- for (SILInstruction &SI : *BB) {
5469
- if (SI.isMetaInstruction ())
5470
- continue ;
5471
- LastSeenScope = SI.getDebugScope ();
5472
- AlreadySeenScopes.insert (LastSeenScope);
5473
- break ;
5474
- }
5475
5468
for (SILInstruction &SI : *BB) {
5476
5469
if (SI.isMetaInstruction ())
5477
5470
continue ;
Original file line number Diff line number Diff line change @@ -11,3 +11,13 @@ func f(c: AnyObject?) {
11
11
}
12
12
print ( x)
13
13
}
14
+
15
+ // Check that we don't crash with a verifier error on this.
16
+ protocol P { }
17
+
18
+ public func testit( _ x: AnyObject ) -> Bool {
19
+ guard let _ = x as? P else {
20
+ return false
21
+ }
22
+ fatalError ( )
23
+ }
You can’t perform that action at this time.
0 commit comments