summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/TreeTransform.h
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-10-17 11:44:44 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-10-17 11:44:44 +0000
commit218dad8568570942246cca62660bb8b2b49a8a7d (patch)
tree96e7797012c028e2cf9f68acbd48a735ef81b863 /clang/lib/Sema/TreeTransform.h
parent32ba1735871c8fef9b8a7ed05e1a454a6d20c915 (diff)
downloadbcm5719-llvm-218dad8568570942246cca62660bb8b2b49a8a7d.tar.gz
bcm5719-llvm-218dad8568570942246cca62660bb8b2b49a8a7d.zip
Optimize Type::isStructureOrClassType() by reusing RT->getDecl().
RecordType->getDecl() which maps to TagType::getDecl() is not a simple accessor but a loop on redecls in getInterestingTagDecl. isStructureOrClassType() was calling getDecl() three times performing three times the work actually required. It is optimized by calling RT->getDecl() once and reusing the result three times. llvm-svn: 220033
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud