From 57012ee70db3deff05ab98b493bea308d8d97555 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Mon, 5 Jul 2010 02:31:16 +0000 Subject: [PATCH] Make FieldDecl an invalid Entity since it has no linkage. llvm-svn: 107605 --- clang/lib/Index/Entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Index/Entity.cpp b/clang/lib/Index/Entity.cpp index fb3c7ae4c0a9..0551ae537a9b 100644 --- a/clang/lib/Index/Entity.cpp +++ b/clang/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(); } //===----------------------------------------------------------------------===// -- GitLab