Don't walk a linked list twice in the same function. On my machine this takes
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 20 Nov 2012 23:23:57 +0000 (23:23 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 20 Nov 2012 23:23:57 +0000 (23:23 +0000)
commitcd7720a03f91f026bef40ac94ba9b85a0125c379
tree6228a9f9fab33827672d0f1837d7eae5bb4a7f18
parent3a6808cc32e4343512e50334ce00e8b1b4705fab
Don't walk a linked list twice in the same function. On my machine this takes
"clang -cc1" on a file with 10k repetitions of
extern int no_such_variable;
from 1.434s to 1.133s.

llvm-svn: 168394
clang/include/clang/AST/Decl.h