Diagnose TypoExprs in a couple of error cases in ParsePostfixExpressionSuffix.
authorKaelyn Takata <rikka@google.com>
Tue, 2 Dec 2014 22:05:35 +0000 (22:05 +0000)
committerKaelyn Takata <rikka@google.com>
Tue, 2 Dec 2014 22:05:35 +0000 (22:05 +0000)
commitc71dda2c38db839bca7262fd3a91a3982c720ddd
treedebd9c84e59b4bd6cfb6fe989afa37cf941cf9b7
parentbbdee936388d96bc4c72a3b635ad5d29ff6b6eac
Diagnose TypoExprs in a couple of error cases in ParsePostfixExpressionSuffix.

Also have CorrectDelayedTyposInExpr check that the Expr* isn't null
before trying to access its members. Fixes PR21679.

llvm-svn: 223162
clang/lib/Parse/ParseExpr.cpp
clang/lib/Sema/SemaExprCXX.cpp