]> granicus.if.org Git - clang/commitdiff
More comments for r189494.
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 28 Aug 2013 20:58:00 +0000 (20:58 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 28 Aug 2013 20:58:00 +0000 (20:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189516 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index f9570abef745e84df84c9bb28f4c8ef2709464bd..e1a9ae1a9161791eb43908039af2c277284de4e3 100644 (file)
@@ -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()) {