File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -2644,14 +2644,17 @@ class Verifier : public ASTWalker {
2644
2644
abort ();
2645
2645
}
2646
2646
2647
- // If we are performing pack iteration, variables have to carry the
2648
- // generic environment. Catching the missing environment here will prevent
2649
- // the code from being lowered.
2650
- if (var->getTypeInContext ()->is <ErrorType>()) {
2651
- Out << " VarDecl is missing a Generic Environment: " ;
2652
- var->getInterfaceType ().print (Out);
2653
- Out << " \n " ;
2654
- abort ();
2647
+ // FIXME: Workaround for invalid AST for imported C++ templates.
2648
+ if (!var->hasClangNode ()) {
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>()) {
2653
+ Out << " VarDecl is missing a Generic Environment: " ;
2654
+ var->getInterfaceType ().print (Out);
2655
+ Out << " \n " ;
2656
+ abort ();
2657
+ }
2655
2658
}
2656
2659
2657
2660
// The fact that this is *directly* be a reference storage type
You can’t perform that action at this time.
0 commit comments