summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index 4b42a73dd24..f3316461ac0 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -1045,10 +1045,10 @@ ExprResult Parser::ParseCastExpression(bool isUnaryExpression,
}
case tok::kw_co_await: { // unary-expression: 'co_await' cast-expression
- SourceLocation SavedLoc = ConsumeToken();
+ SourceLocation CoawaitLoc = ConsumeToken();
Res = ParseCastExpression(false);
- (void)SavedLoc;
- // FIXME: Pass to Sema.
+ if (!Res.isInvalid())
+ Res = Actions.ActOnCoawaitExpr(CoawaitLoc, Res.get());
return Res;
}
OpenPOWER on IntegriCloud