File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1136,6 +1136,7 @@ class Verifier : public ASTWalker {
1136
1136
}
1137
1137
1138
1138
void verifyChecked (TupleExpr *E) {
1139
+ PrettyStackTraceExpr debugStack (Ctx, " verifying TupleExpr" , E);
1139
1140
const TupleType *exprTy = E->getType ()->castTo <TupleType>();
1140
1141
for_each (exprTy->getElements ().begin (), exprTy->getElements ().end (),
1141
1142
E->getElements ().begin (),
@@ -1148,8 +1149,14 @@ class Verifier : public ASTWalker {
1148
1149
Out << elt->getType () << " \n " ;
1149
1150
abort ();
1150
1151
}
1152
+ if (!field.getParameterFlags ().isNone ()) {
1153
+ Out << " TupleExpr has non-empty parameter flags?\n " ;
1154
+ Out << " sub expr: \n " ;
1155
+ elt->dump (Out);
1156
+ Out << " \n " ;
1157
+ abort ();
1158
+ }
1151
1159
});
1152
- // FIXME: Check all the variadic elements.
1153
1160
verifyCheckedBase (E);
1154
1161
}
1155
1162
@@ -1970,10 +1977,15 @@ class Verifier : public ASTWalker {
1970
1977
1971
1978
void verifyChecked (ParenExpr *E) {
1972
1979
PrettyStackTraceExpr debugStack (Ctx, " verifying ParenExpr" , E);
1973
- if (!isa<ParenType>(E->getType ().getPointer ())) {
1980
+ auto ty = dyn_cast<ParenType>(E->getType ().getPointer ());
1981
+ if (!ty) {
1974
1982
Out << " ParenExpr not of ParenType\n " ;
1975
1983
abort ();
1976
1984
}
1985
+ if (!ty->getParameterFlags ().isNone ()) {
1986
+ Out << " ParenExpr has non-empty parameter flags?\n " ;
1987
+ abort ();
1988
+ }
1977
1989
verifyCheckedBase (E);
1978
1990
}
1979
1991
You can’t perform that action at this time.
0 commit comments