[llvm-bugs] [Bug 32757] New: Clang-cl: inlinable function call in a function with debug info must have a !dbg location

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 23 11:07:20 PDT 2017


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

            Bug ID: 32757
           Summary: Clang-cl: inlinable function call in a function with
                    debug info must have a !dbg location
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jvapen at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18333
  --> https://bugs.llvm.org/attachment.cgi?id=18333&action=edit
Reproduction

When trying to compile our codebase with clang-cl, we noticed a fatal error by
the compiler:
inlinable function call in a function with debug info must have a !dbg location
  call void @"\01??_DB@@UEAA at XZ"(%struct.B* %this1)
fatal error: error in backend: Broken function found, compilation aborted!

This specific case combines __declspec(dllimport) and virtual inheritance.

For all details, please check the reproduction in the attachment.

-- 
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/20170423/73a01071/attachment.html>


More information about the llvm-bugs mailing list