Fix sorting of using directives, from Jay Foad

llvm-svn: 72048
This commit is contained in:
Douglas Gregor 2009-05-18 22:06:54 +00:00
parent bc308569a3
commit 4182e32172
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ Sema::CppLookupName(Scope *S, DeclarationName Name,
AddScopeUsingDirectives(Context, SC, UDirs);
// Sort heapified UsingDirectiveDecls.
std::sort_heap(UDirs.begin(), UDirs.end());
std::sort_heap(UDirs.begin(), UDirs.end(), UsingDirAncestorCompare());
// Lookup namespace scope, and global scope.
// Unqualified name lookup in C++ requires looking into scopes