File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3002,6 +3002,9 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
3002
3002
}
3003
3003
3004
3004
void checkAssignOrInitInst (AssignOrInitInst *AI) {
3005
+ if (F.getASTContext ().hadError ())
3006
+ return ;
3007
+
3005
3008
SILValue Src = AI->getSrc ();
3006
3009
require (AI->getModule ().getStage () == SILStage::Raw,
3007
3010
" assign_or_init can only exist in raw SIL" );
@@ -6620,6 +6623,9 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
6620
6623
// / the task, or exiting the function
6621
6624
// / - flow-sensitive states must be equivalent on all paths into a block
6622
6625
void verifyFlowSensitiveRules (SILFunction *F) {
6626
+ if (F->getASTContext ().hadError ())
6627
+ return ;
6628
+
6623
6629
// Do a traversal of the basic blocks.
6624
6630
// Note that we intentionally don't verify these properties in blocks
6625
6631
// that can't be reached from the entry block.
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
1
+ // RUN: %target-swift-frontend -sil-verify-all - emit-sil -primary-file %s -o /dev/null -verify
2
2
//
3
3
// Tests for yield-once diagnostics emitted for generalized accessors.
4
4
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -enable-copy-propagation=requested-passes-only -emit-sil -primary-file %s -o /dev/null -verify
1
+ // RUN: %target-swift-frontend -sil-verify-all - enable-copy-propagation=requested-passes-only -emit-sil -primary-file %s -o /dev/null -verify
2
2
3
3
struct Test1 {
4
4
var x : Int // expected-note {{variable defined here}}
You can’t perform that action at this time.
0 commit comments