]> granicus.if.org Git - clang/commit
Improve the performance of resolving a lookup result. We usually don't need to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 22 Aug 2015 21:37:34 +0000 (21:37 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 22 Aug 2015 21:37:34 +0000 (21:37 +0000)
commitd0df642c5872413b9017932717b6bdd13acc4a79
treee22e94b75bef7c70c4a03bafc35db099011a0384
parent506abeb8d0fb9d956b8577c03eb9bd85ee04dfdd
Improve the performance of resolving a lookup result. We usually don't need to
pick the most recent declaration, and we can often tell which declaration is
more recent without walking the redeclaration chain. Do so when possible.

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