mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-08 06:36:48 +08:00
Add comment
From-SVN: r38525
This commit is contained in:
parent
414ea4aa86
commit
7e7d951756
@ -3962,10 +3962,14 @@ lookup_template_class (d1, arglist, in_decl, context, entering_scope)
|
||||
if (comp_template_args (TREE_PURPOSE (*tp), arglist))
|
||||
{
|
||||
found = *tp;
|
||||
|
||||
/* Use the move-to-front heuristic to speed up future
|
||||
searches. */
|
||||
*tp = TREE_CHAIN (*tp);
|
||||
TREE_CHAIN (found)
|
||||
= DECL_TEMPLATE_INSTANTIATIONS (template);
|
||||
DECL_TEMPLATE_INSTANTIATIONS (template) = found;
|
||||
|
||||
return TREE_VALUE (found);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user