commit | 81e34b1c137ffaa9b9c7d488744bdaa0cee8e845 | [log] [tgz] |
---|---|---|
author | Serge Pavlov <sepavloff@gmail.com> | Mon Oct 14 14:05:48 2013 +0000 |
committer | Serge Pavlov <sepavloff@gmail.com> | Mon Oct 14 14:05:48 2013 +0000 |
tree | 93a7c5946856f7b99f81e15580829e34a78d2dfc | |
parent | 74ecbd5babae58907e6338a5f79ec4eb4401c0dc [diff] |
Do not use typo correction that is unaccessible. This patch fixes PR17019. When doing typo correction, Sema::CorrectTypo uses correction already seen for the same typo. This causes problems if that correction is from another scope and cannot be accessed in the current. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192594 91177308-0d34-0410-b5e6-96231b3b80d8