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.
1 parent 4aba5ed commit 9d90d16Copy full SHA for 9d90d16
clang/lib/Sema/HeuristicResolver.cpp
@@ -450,7 +450,12 @@ QualType HeuristicResolverImpl::resolveExprToType(const Expr *E) {
450
if (const auto *CE = dyn_cast<CallExpr>(E)) {
451
if (QualType Resolved = resolveTypeOfCallExpr(CE); !Resolved.isNull())
452
return Resolved;
453
+
454
+ // Don't proceed to try resolveExprToDecls(), it would just call
455
+ // resolveTypeOfCallExpr() again.
456
+ return E->getType();
457
}
458
459
// Similarly, unwrapping a unary dereference operation does not work via
460
// resolveExprToDecls.
461
if (const auto *UO = dyn_cast<UnaryOperator>(E->IgnoreParenCasts())) {
0 commit comments