projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ff4c08
)
Add comments. NFC
author
Adrian Prantl
<aprantl@apple.com>
Mon, 22 Aug 2016 22:38:16 +0000
(22:38 +0000)
committer
Adrian Prantl
<aprantl@apple.com>
Mon, 22 Aug 2016 22:38:16 +0000
(22:38 +0000)
llvm-svn: 279490
clang/lib/CodeGen/CGDebugInfo.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGDebugInfo.cpp
b/clang/lib/CodeGen/CGDebugInfo.cpp
index
af0cd02
..
d515e1a
100644
(file)
--- a/
clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/
clang/lib/CodeGen/CGDebugInfo.cpp
@@
-1650,8
+1650,10
@@
static bool hasExplicitMemberDefinition(CXXRecordDecl::method_iterator I,
/// 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)) {