Skip to content

Commit 686fbf3

Browse files
author
Jan Svoboda
committed
Allow nullptr as output of ASTGen
1 parent d892a83 commit 686fbf3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Parse/ASTGen.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ TypeRepr *ASTGen::generate(TypeSyntax Type, SourceLoc &Loc) {
126126
if (!TypeAST && hasType(advanceLocBegin(Loc, Type)))
127127
TypeAST = getType(advanceLocBegin(Loc, Type));
128128

129-
assert(TypeAST && "Unhandled type generation!");
130-
131129
return cacheType(Type, TypeAST);
132130
}
133131

0 commit comments

Comments
 (0)