Skip to content

Commit a1d27c3

Browse files
committed
[ASTVerifier] Use hasError() to avoid propagating the error type.
1 parent de13835 commit a1d27c3

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
@@ -2649,7 +2649,7 @@ class Verifier : public ASTWalker {
26492649
// If we are performing pack iteration, variables have to carry the
26502650
// generic environment. Catching the missing environment here will prevent
26512651
// the code from being lowered.
2652-
if (var->getTypeInContext()->is<ErrorType>()) {
2652+
if (var->getTypeInContext()->hasError()) {
26532653
Out << "VarDecl is missing a Generic Environment: ";
26542654
var->getInterfaceType().print(Out);
26552655
Out << "\n";

0 commit comments

Comments
 (0)