File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ static llvm::cl::opt<bool>
5353 llvm::cl::desc (" Disable verification of input SIL" ),
5454 llvm::cl::init(false ));
5555
56+ // Option for testing -silgen-cleanup -enable-complete-ossa
57+ static llvm::cl::opt<bool >
58+ ParseIncompleteOSSA (" parse-incomplete-ossa" ,
59+ llvm::cl::desc (" Parse OSSA with incomplete lifetimes" ));
60+
5661// ===----------------------------------------------------------------------===//
5762// SILParserState implementation
5863// ===----------------------------------------------------------------------===//
@@ -7043,7 +7048,7 @@ bool SILParserState::parseDeclSIL(Parser &P) {
70437048
70447049 // If SIL parsing succeeded, verify the generated SIL.
70457050 if (!P.Diags .hadAnyError () && !DisableInputVerify)
7046- FunctionState.F ->verify ();
7051+ FunctionState.F ->verify (/* SingleFunction= */ true , !ParseIncompleteOSSA );
70477052
70487053 return false ;
70497054}
You can’t perform that action at this time.
0 commit comments