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.
2 parents 786cfc5 + 5e4390c commit 0ae61f6Copy full SHA for 0ae61f6
lib/Sema/TypeCheckConstraints.cpp
@@ -3121,9 +3121,15 @@ void ConstraintSystem::dump() {
3121
}
3122
3123
void ConstraintSystem::dump(Expr *E) {
3124
- auto getTypeOfExpr = [&](const Expr *E) -> Type { return getType(E); };
+ auto getTypeOfExpr = [&](const Expr *E) -> Type {
3125
+ if (hasType(E))
3126
+ return getType(E);
3127
+ return Type();
3128
+ };
3129
auto getTypeOfTypeLoc = [&](const TypeLoc &TL) -> Type {
- return getType(TL);
3130
+ if (hasType(TL))
3131
+ return getType(TL);
3132
3133
};
3134
3135
E->dump(getTypeOfExpr, getTypeOfTypeLoc);
0 commit comments