[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)
commitdd0bed1b2d66c9731ead4b26a57288f96c3b34e6
treebf5751a4b6ed8bd32022a22e104f70fc4a7483ed
parent87b853c5f0f8099dd1bdc292a08aa49f9d37c123
[AST] hasAttr followed by getAttr isn't efficient

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

llvm-svn: 237336
clang/lib/AST/Decl.cpp