When adding a NamedDecl to a correction, add the underlying Decl (via
authorKaelyn Uhrain <rikka@google.com>
Mon, 19 Nov 2012 18:49:53 +0000 (18:49 +0000)
committerKaelyn Uhrain <rikka@google.com>
Mon, 19 Nov 2012 18:49:53 +0000 (18:49 +0000)
commitf60b55ae49037d03934e5dc56dfbf1511ab0f576
treef9368cb649a4fc0b01c4eb06d9c4365016f225c0
parent26786bacd131d8b2b349749e55eefb7fc1e1e557
When adding a NamedDecl to a correction, add the underlying Decl (via
getUnderlyingDecl()) so that derivatives of
CorrectionCandidateCallback::ValidateCandidate(...) don't have to worry
about being thrown by UsingDecls and such.

llvm-svn: 168317
clang/lib/Sema/SemaLookup.cpp
clang/test/SemaCXX/typo-correction.cpp