http://llvm.org/bugs/show_bug.cgi?id=19562

            Bug ID: 19562
           Summary: Lots of leaks caused by DBuilder.createForwardDecl()
                    calls in CGDebugInfo
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

LSan reports many leaks below DBuilder.createForwardDecl(). From what I
understand, MDNode::getTemporary() (called by DIBuilder::createForwardDecl())
is special in that it needs a call to MDNode::deleteTemporary() which the other
MDNode::get() functions don't need.

>From what I understand, this is usually called through
DIType::replaceAllUsesWith(). CGDebugInfo::finalize() does call
replaceAllUsesWith(), but only for types in ReplaceMap, and most callers of
createForwardDecl() don't put the result in ReplaceMap. I don't understand the
code well enough to say if that's the bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to