[cfe-commits] r72048 - /cfe/trunk/lib/Sema/SemaLookup.cpp
Douglas Gregor
dgregor at apple.com
Mon May 18 15:06:55 PDT 2009
Author: dgregor
Date: Mon May 18 17:06:54 2009
New Revision: 72048
URL: http://llvm.org/viewvc/llvm-project?rev=72048&view=rev
Log:
Fix sorting of using directives, from Jay Foad
Modified:
cfe/trunk/lib/Sema/SemaLookup.cpp
Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=72048&r1=72047&r2=72048&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Mon May 18 17:06:54 2009
@@ -713,7 +713,7 @@
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
More information about the cfe-commits
mailing list