Minor optimization; if we have a CXXRecordDecl we can get the definition decl directl...
commitdcb5abf17e36782350c5905c46946ddab9d78320
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Tue, 19 Oct 2010 18:06:47 +0000 (19 18:06 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Tue, 19 Oct 2010 18:06:47 +0000 (19 18:06 +0000)
tree206afb50b7f1550491a3b342dad7b3ce1679b94c
parent0371215e500375906c0a030985fd00a7cd3df254
Minor optimization; if we have a CXXRecordDecl we can get the definition decl directly without iterating over the redeclarations.

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