Skip to content

Commit 40167fb

Browse files
committed
[ASTVerifier] Use hasError() to avoid propagating the error type.
1 parent 92d81f3 commit 40167fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,7 @@ class Verifier : public ASTWalker {
26452645
}
26462646

26472647
// Catch cases where there's a missing generic environment.
2648-
if (var->getTypeInContext()->is<ErrorType>()) {
2648+
if (var->getTypeInContext()->hasError()) {
26492649
Out << "VarDecl is missing a Generic Environment: ";
26502650
var->getInterfaceType().print(Out);
26512651
Out << "\n";

0 commit comments

Comments
 (0)