summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-08-28 20:58:00 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-08-28 20:58:00 +0000
commita6cc82114d63a2ef286cc38cf0cf43355f7dc950 (patch)
tree57ee20ad5c27c3fcec773a3d9b2878fa429ea342
parentcefc7eafc6553652d2e7e7d40158af84c86bf38d (diff)
downloadbcm5719-llvm-a6cc82114d63a2ef286cc38cf0cf43355f7dc950.tar.gz
bcm5719-llvm-a6cc82114d63a2ef286cc38cf0cf43355f7dc950.zip
More comments for r189494.
llvm-svn: 189516
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index f9570abef74..e1a9ae1a916 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1123,9 +1123,12 @@ CollectCXXMemberFunctions(const CXXRecordDecl *RD, llvm::DIFile Unit,
for(DeclContext::decl_iterator I = RD->decls_begin(),
E = RD->decls_end(); I != E; ++I) {
if (const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(*I)) {
- // Reuse the existing member function declaration if it exists
+ // Reuse the existing member function declaration if it exists.
// It may be associated with the declaration of the type & should be
// reused as we're building the definition.
+ //
+ // This situation can arise in the vtable-based debug info reduction where
+ // implicit members are emitted in a non-vtable TU.
llvm::DenseMap<const FunctionDecl *, llvm::WeakVH>::iterator MI =
SPCache.find(Method->getCanonicalDecl());
if (MI == SPCache.end()) {
OpenPOWER on IntegriCloud