File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ static llvm::cl::opt<bool>
48
48
ParseSerializedSIL (" parse-serialized-sil" ,
49
49
llvm::cl::desc (" Parse the output of a serialized module" ));
50
50
51
+ static llvm::cl::opt<bool >
52
+ DisableInputVerify (" sil-disable-input-verify" ,
53
+ llvm::cl::desc (" Disable verification of input SIL" ),
54
+ llvm::cl::init(false ));
55
+
51
56
// ===----------------------------------------------------------------------===//
52
57
// SILParserState implementation
53
58
// ===----------------------------------------------------------------------===//
@@ -7037,7 +7042,7 @@ bool SILParserState::parseDeclSIL(Parser &P) {
7037
7042
return true ;
7038
7043
7039
7044
// If SIL parsing succeeded, verify the generated SIL.
7040
- if (!P.Diags .hadAnyError ())
7045
+ if (!P.Diags .hadAnyError () && !DisableInputVerify )
7041
7046
FunctionState.F ->verify ();
7042
7047
7043
7048
return false ;
Original file line number Diff line number Diff line change 1
- // RUN: %target-sil-opt -enable-ossa-complete-lifetimes -unit-test-runner -sil-verify-none %s -o /dev/null 2>&1 | %FileCheck %s
1
+ // RUN: %target-sil-opt -enable-ossa-complete-lifetimes -unit-test-runner -sil-disable-input-verify %s -o /dev/null 2>&1 | %FileCheck %s
2
2
3
3
sil_stage raw
4
4
You can’t perform that action at this time.
0 commit comments