Skip to content

Commit 60117c5

Browse files
committed
Add -parse-incomplete-ossa option
1 parent 7b78d39 commit 60117c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/SIL/Parser/ParseSIL.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)