]> granicus.if.org Git - clang/commitdiff
Make FieldDecl an invalid Entity since it has no linkage.
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 5 Jul 2010 02:31:16 +0000 (02:31 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 5 Jul 2010 02:31:16 +0000 (02:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107605 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Index/Entity.cpp

index fb3c7ae4c0a99bb748a8d9dac86aa325dce450af..0551ae537a9b16881c65e47014b35e3affa8c119 100644 (file)
@@ -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();
 }
 
 //===----------------------------------------------------------------------===//