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>
4848ParseSerializedSIL (" parse-serialized-sil" ,
4949 llvm::cl::desc (" Parse the output of a serialized module" ));
5050
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+
5156// ===----------------------------------------------------------------------===//
5257// SILParserState implementation
5358// ===----------------------------------------------------------------------===//
@@ -7037,7 +7042,7 @@ bool SILParserState::parseDeclSIL(Parser &P) {
70377042 return true ;
70387043
70397044 // If SIL parsing succeeded, verify the generated SIL.
7040- if (!P.Diags .hadAnyError ())
7045+ if (!P.Diags .hadAnyError () && !DisableInputVerify )
70417046 FunctionState.F ->verify ();
70427047
70437048 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
22
33sil_stage raw
44
You can’t perform that action at this time.
0 commit comments