diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-05 02:31:16 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-05 02:31:16 +0000 |
commit | 423030c9e73ac8c21b747dc019c192bc5041c848 (patch) | |
tree | 83bced8f7611f5fcbc04187b17dd6a59dd4fc3e6 /lib/Index/Entity.cpp | |
parent | 139d0b39501404665b1b0ccaaaf5632c42419ebf (diff) |
Make FieldDecl an invalid Entity since it has no linkage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/Entity.cpp')
-rw-r--r-- | lib/Index/Entity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Index/Entity.cpp b/lib/Index/Entity.cpp index fb3c7ae4c0..0551ae537a 100644 --- a/lib/Index/Entity.cpp +++ b/lib/Index/Entity.cpp @@ -126,8 +126,8 @@ Entity EntityGetter::VisitFunctionDecl(FunctionDecl *D) { } Entity EntityGetter::VisitFieldDecl(FieldDecl *D) { - // Make FieldDecl an internal Entity. - return Entity(D); + // Make FieldDecl an invalid Entity since it has no linkage. + return Entity(); } //===----------------------------------------------------------------------===// |