summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorKaelyn Takata <rikka@google.com>2014-12-03 05:30:54 +0000
committerKaelyn Takata <rikka@google.com>2014-12-03 05:30:54 +0000
commit53ac6a04eb2e212ef7446400ef9af323cc0902b0 (patch)
tree370c6c166a7d49e1c04a7c0ff97da0fdcfbaf332 /clang/lib/Parse/ParseExpr.cpp
parent120a0c92f4805c3b2f0a389d836ecba61c023cd8 (diff)
downloadbcm5719-llvm-53ac6a04eb2e212ef7446400ef9af323cc0902b0.tar.gz
bcm5719-llvm-53ac6a04eb2e212ef7446400ef9af323cc0902b0.zip
Handle delayed corrections in a couple more error paths in ParsePostfixExpressionSuffix.
llvm-svn: 223209
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index eeea15dec05..ee8f4d9af67 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -1390,6 +1390,7 @@ Parser::ParsePostfixExpressionSuffix(ExprResult LHS) {
SourceLocation OpenLoc = ConsumeToken();
if (ParseSimpleExpressionList(ExecConfigExprs, ExecConfigCommaLocs)) {
+ (void)Actions.CorrectDelayedTyposInExpr(LHS);
LHS = ExprError();
}
@@ -1440,6 +1441,7 @@ Parser::ParsePostfixExpressionSuffix(ExprResult LHS) {
if (Tok.isNot(tok::r_paren)) {
if (ParseExpressionList(ArgExprs, CommaLocs, &Sema::CodeCompleteCall,
LHS.get())) {
+ (void)Actions.CorrectDelayedTyposInExpr(LHS);
LHS = ExprError();
}
}
OpenPOWER on IntegriCloud