[llvm-bugs] [Bug 51501] New: Assertion `IRFuncTy == TypeFromVal' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 17 02:37:06 PDT 2021


            Bug ID: 51501
           Summary: Assertion `IRFuncTy == TypeFromVal' failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: stefan.pejic at syrmia.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 25145
  --> https://bugs.llvm.org/attachment.cgi?id=25145&action=edit
Reproducer for the issue

I ran into an issue when compiling with clang with enabled assertions. The
issue has to do with function pointers, variadic functions and typedeffing. Not
sure what else to say. The attached reproducer is as minimal as I could get it.
Removing anything (including unused typedef) makes the assertion go away.

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/20210817/37203dbd/attachment-0001.html>

More information about the llvm-bugs mailing list