[llvm-bugs] [Bug 34255] New: llvm-cov: Coverage for destructors wrong with optimizations

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 21 05:25:36 PDT 2017


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

            Bug ID: 34255
           Summary: llvm-cov: Coverage for destructors wrong with
                    optimizations
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dennis.felsing at sap.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19018
  --> https://bugs.llvm.org/attachment.cgi?id=19018&action=edit
Example code, compile with -O1

With -O0 the destructor is covered, while with -O1 and higher it is not. This
forces me to run coverage code with -O0. Minimal example attached. I would
expect the destructor to always be covered.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170821/80588593/attachment-0001.html>


More information about the llvm-bugs mailing list