Also correct typos in the middle of a ternary expression when the RHS is invalid.
authorKaelyn Takata <rikka@google.com>
Fri, 1 May 2015 20:59:18 +0000 (20:59 +0000)
committerKaelyn Takata <rikka@google.com>
Fri, 1 May 2015 20:59:18 +0000 (20:59 +0000)
commita8dfd33611f978e3b78e5175ee4b55618ec00c1e
tree8393b8f36fa7f0d7189505d12fad9a66743cfafb
parent9df2fa261b66933cf0f3f8882e5ea0eee9fbc075
Also correct typos in the middle of a ternary expression when the RHS is invalid.

The LHS was already being corrected before being set to ExprError when
the RHS is invalid, but when it was present the middle of a ternary
expression would be dropped in the error paths.

Fixes PR23350.

llvm-svn: 236347
clang/lib/Parse/ParseExpr.cpp
clang/test/SemaCXX/typo-correction-delayed.cpp