https://llvm.org/bugs/show_bug.cgi?id=31437

            Bug ID: 31437
           Summary: Assertion with LTO and debug info when mixing -g and
                    -gmlt
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedb...@nondot.org
          Reporter: paul_robin...@playstation.sony.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 17776
  --> https://llvm.org/bugs/attachment.cgi?id=17776&action=edit
two .cpp files and a .sh script to reproduce

If we compile one module with -g and another with -gmlt this can trigger
a crash in DwarfDebug.

llc:
/home/probinson/projects/llvm-org/trunk/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1216:
virtual void llvm::DwarfDebug::endFunction(const llvm::MachineFunction*):
Assertion `DbgValues.empty()' failed.

It looks like this assert was added in r218129.
Also another one next to it, for AbstractVariables.empty().
We should be able to conjure up repro for that one too if you want.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to