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 aa4c548 commit 1769ae9Copy full SHA for 1769ae9
lib/AST/Expr.cpp
@@ -1633,9 +1633,12 @@ Expr *DefaultArgumentExpr::getCallerSideDefaultExpr() const {
1633
assert(isCallerSide());
1634
auto &ctx = DefaultArgsOwner.getDecl()->getASTContext();
1635
auto *mutableThis = const_cast<DefaultArgumentExpr *>(this);
1636
- return evaluateOrDefault(ctx.evaluator,
+ if (auto result = evaluateOrDefault(ctx.evaluator,
1637
CallerSideDefaultArgExprRequest{mutableThis},
1638
- new (ctx) ErrorExpr(getSourceRange(), getType()));
+ nullptr))
1639
+ return result;
1640
+
1641
+ return new (ctx) ErrorExpr(getSourceRange(), getType());
1642
}
1643
1644
ActorIsolation
0 commit comments