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)
commit878c801ddc96d3f77177aba7918428fc64adad24
treeebea298eb57a57b89f7652d550ca4b11836b3040
parent7567b2ffcc48ce733421dfd6b02d34bddc729fb5
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223162 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseExpr.cpp
lib/Sema/SemaExprCXX.cpp