r279490 - Add comments. NFC
Adrian Prantl via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 15:38:16 PDT 2016
Author: adrian
Date: Mon Aug 22 17:38:16 2016
New Revision: 279490
URL: http://llvm.org/viewvc/llvm-project?rev=279490&view=rev
Log:
Add comments. NFC
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=279490&r1=279489&r2=279490&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Aug 22 17:38:16 2016
@@ -1650,8 +1650,10 @@ static bool hasExplicitMemberDefinition(
/// Does a type definition exist in an imported clang module?
static bool isDefinedInClangModule(const RecordDecl *RD) {
+ // Only definitions that where imported from an AST file come from a module.
if (!RD || !RD->isFromASTFile())
return false;
+ // Anonymous entities cannot be addressed. Treat them as not from module.
if (!RD->isExternallyVisible() && RD->getName().empty())
return false;
if (auto *CXXDecl = dyn_cast<CXXRecordDecl>(RD)) {
More information about the cfe-commits
mailing list