Skip to content

Commit 77cb7b7

Browse files
committed
[ASTPrinter] Remove an unnecessary assertion
This used to be an argument to `getContextSubstitutionMap`, but that's no longer the case. It's not important to have `CurrentModule` set here.
1 parent fcc367a commit 77cb7b7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,6 @@ class PrintAST : public ASTVisitor<PrintAST> {
11591159
Type OldType = CurrentType;
11601160
if (CurrentType && (Old != nullptr || Options.PrintAsMember)) {
11611161
if (auto *NTD = dyn_cast<NominalTypeDecl>(D)) {
1162-
assert(Options.CurrentModule);
11631162
auto Subs = CurrentType->getContextSubstitutionMap(
11641163
NTD->getDeclContext());
11651164
setCurrentType(NTD->getDeclaredInterfaceType().subst(Subs));

0 commit comments

Comments
 (0)