We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hasError()
1 parent de13835 commit a1d27c3Copy full SHA for a1d27c3
lib/AST/ASTVerifier.cpp
@@ -2649,7 +2649,7 @@ class Verifier : public ASTWalker {
2649
// If we are performing pack iteration, variables have to carry the
2650
// generic environment. Catching the missing environment here will prevent
2651
// the code from being lowered.
2652
- if (var->getTypeInContext()->is<ErrorType>()) {
+ if (var->getTypeInContext()->hasError()) {
2653
Out << "VarDecl is missing a Generic Environment: ";
2654
var->getInterfaceType().print(Out);
2655
Out << "\n";
0 commit comments