]> granicus.if.org Git - clang/commit
[AST] hasAttr followed by getAttr isn't efficient
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 14 May 2015 05:19:20 +0000 (05:19 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 14 May 2015 05:19:20 +0000 (05:19 +0000)
commit575c8ea65c2a5212d95e9881f8a2aac27315dd53
treefb1b9b2f93d01b0e079eaf90e137a4aa43cbef24
parent6943bc7dbe99d573d507ddbed1fd348398ab272d
[AST] hasAttr followed by getAttr isn't efficient

Just use getAttr because we are interested in the attribute's contents.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237336 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp