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>
53
53
llvm::cl::desc (" Disable verification of input SIL" ),
54
54
llvm::cl::init(false ));
55
55
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
+
56
61
// ===----------------------------------------------------------------------===//
57
62
// SILParserState implementation
58
63
// ===----------------------------------------------------------------------===//
@@ -7043,7 +7048,7 @@ bool SILParserState::parseDeclSIL(Parser &P) {
7043
7048
7044
7049
// If SIL parsing succeeded, verify the generated SIL.
7045
7050
if (!P.Diags .hadAnyError () && !DisableInputVerify)
7046
- FunctionState.F ->verify ();
7051
+ FunctionState.F ->verify (/* SingleFunction= */ true , !ParseIncompleteOSSA );
7047
7052
7048
7053
return false ;
7049
7054
}
You can’t perform that action at this time.
0 commit comments