Make FieldDecl an invalid Entity since it has no linkage.

llvm-svn: 107605
This commit is contained in:
Zhongxing Xu 2010-07-05 02:31:16 +00:00
parent 5776d439ca
commit 57012ee70d
1 changed files with 2 additions and 2 deletions

View 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();
}
//===----------------------------------------------------------------------===//