Commit 8245c194 by Matt Austern Committed by Matt Austern

Compile speed improvement.

	* name-lookup.c (namespace_binding): Omit alias check for global namespace.

From-SVN: r91575
parent 986583fd
2004-12-01 Matt Austern <austern@apple.com>
* name-lookup.c (namespace_binding): Omit alias check for global namespace.
2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
PR c++/18729
......
......@@ -2735,7 +2735,10 @@ namespace_binding (tree name, tree scope)
if (scope == NULL)
scope = global_namespace;
scope = ORIGINAL_NAMESPACE (scope);
else
/* Unnecessary for the global namespace because it can't be an alias. */
scope = ORIGINAL_NAMESPACE (scope);
binding = cxx_scope_find_binding_for_name (NAMESPACE_LEVEL (scope), name);
return binding ? binding->value : NULL_TREE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment