From: Zhongxing Xu Date: Mon, 5 Jul 2010 02:31:16 +0000 (+0000) Subject: Make FieldDecl an invalid Entity since it has no linkage. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=423030c9e73ac8c21b747dc019c192bc5041c848;p=clang 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 --- 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(); } //===----------------------------------------------------------------------===//