diff options
author | Kaelyn Uhrain <rikka@google.com> | 2012-01-25 20:49:08 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2012-01-25 20:49:08 +0000 |
commit | cd78e612d6fa8e214e6a6bb0e739a0c3e419df91 (patch) | |
tree | 80fe736fdb339888bc309422e146c3753a84396d /lib/Parse/ParseExprCXX.cpp | |
parent | ada4fa7978dc91a5e615af2ec29e12e3c6973c7f (diff) |
Avoid correcting unknown identifiers to types where types aren't allowed.
Pass a typo correction callback object from ParseCastExpr to
Sema::ActOnIdExpression to be a bit more selective about what kinds of
corrections will be allowed for unknown identifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExprCXX.cpp')
-rw-r--r-- | lib/Parse/ParseExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp index 37d9b5b2b9..dfab03c1c3 100644 --- a/lib/Parse/ParseExprCXX.cpp +++ b/lib/Parse/ParseExprCXX.cpp @@ -2552,7 +2552,7 @@ Parser::ParseCXXAmbiguousParenExpression(ParenParseOption &ExprType, false/*isAddressofOperand*/, NotCastExpr, // type-id has priority. - true/*isTypeCast*/); + IsTypeCast); } // If we parsed a cast-expression, it's really a type-id, otherwise it's |