[llvm-bugs] [Bug 46027] New: dwarf::isCPlusPlus fails with user language

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 21 15:14:09 PDT 2020


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

            Bug ID: 46027
           Summary: dwarf::isCPlusPlus fails with user language
           Product: libraries
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: jwajnerman at manas.com.ar
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

Created attachment 23513
  --> https://bugs.llvm.org/attachment.cgi?id=23513&action=edit
Allow user languages in `dwarf::isCPlusPlus`

When the source language is not one of the DW_LANG_*, dwarf::isCPlusPlus fails
with a call to  llvm_unreachable. However, any language between DW_LANG_lo_user
and DW_LANG_hi_user should be accepted.

This is causing errors on some environments for Crystal language:
https://github.com/crystal-lang/crystal/issues/9148

I'm sending the patch with a possible solution.

-- 
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/20200521/42c49fce/attachment.html>


More information about the llvm-bugs mailing list