[cfe-commits] r107605 - /cfe/trunk/lib/Index/Entity.cpp

Zhongxing Xu xuzhongxing at gmail.com
Sun Jul 4 19:31:16 PDT 2010


Author: zhongxingxu
Date: Sun Jul  4 21:31:16 2010
New Revision: 107605

URL: http://llvm.org/viewvc/llvm-project?rev=107605&view=rev
Log:
Make FieldDecl an invalid Entity since it has no linkage.

Modified:
    cfe/trunk/lib/Index/Entity.cpp

Modified: cfe/trunk/lib/Index/Entity.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/Entity.cpp?rev=107605&r1=107604&r2=107605&view=diff
==============================================================================
--- cfe/trunk/lib/Index/Entity.cpp (original)
+++ cfe/trunk/lib/Index/Entity.cpp Sun Jul  4 21:31:16 2010
@@ -126,8 +126,8 @@
 }
 
 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();
 }
 
 //===----------------------------------------------------------------------===//





More information about the cfe-commits mailing list