Commit 7e7d9517 by Mark Mitchell

Add comment

From-SVN: r38525
parent 414ea4aa
...@@ -3962,10 +3962,14 @@ lookup_template_class (d1, arglist, in_decl, context, entering_scope) ...@@ -3962,10 +3962,14 @@ lookup_template_class (d1, arglist, in_decl, context, entering_scope)
if (comp_template_args (TREE_PURPOSE (*tp), arglist)) if (comp_template_args (TREE_PURPOSE (*tp), arglist))
{ {
found = *tp; found = *tp;
/* Use the move-to-front heuristic to speed up future
searches. */
*tp = TREE_CHAIN (*tp); *tp = TREE_CHAIN (*tp);
TREE_CHAIN (found) TREE_CHAIN (found)
= DECL_TEMPLATE_INSTANTIATIONS (template); = DECL_TEMPLATE_INSTANTIATIONS (template);
DECL_TEMPLATE_INSTANTIATIONS (template) = found; DECL_TEMPLATE_INSTANTIATIONS (template) = found;
return TREE_VALUE (found); return TREE_VALUE (found);
} }
......
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