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 7c905d3 + 587fde5 commit ce68190Copy full SHA for ce68190
lib/Sema/CSSolver.cpp
@@ -1380,9 +1380,15 @@ ConstraintSystem::solve(Expr *&expr,
1380
}
1381
1382
if (TC.getLangOpts().DebugConstraintSolver) {
1383
- auto getTypeOfExpr = [&](const Expr *E) -> Type { return getType(E); };
+ auto getTypeOfExpr = [&](const Expr *E) -> Type {
1384
+ if (hasType(E))
1385
+ return getType(E);
1386
+ return Type();
1387
+ };
1388
auto getTypeOfTypeLoc = [&](const TypeLoc &TL) -> Type {
- return getType(TL);
1389
+ if (hasType(TL))
1390
+ return getType(TL);
1391
1392
};
1393
1394
auto &log = getASTContext().TypeCheckerDebug->getStream();
0 commit comments