[llvm-bugs] [Bug 33529] New: [MS] Clang crashes emitting IR for "throw" when _CxxThrowException is defined in the TU

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 20 10:28:39 PDT 2017


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

            Bug ID: 33529
           Summary: [MS] Clang crashes emitting IR for "throw" when
                    _CxxThrowException is defined in the TU
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvm-bugs at lists.llvm.org

Consider:

struct _ThrowInfo { int a, b, c, d; };
extern "C" void _CxxThrowException(void *p, _ThrowInfo *e) {}
void f() { throw 53; }

Compiling in the usual way on Windows results in:

Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible type!",
file C:\src\llvm-project\llvm\include\llvm/Support/Casting.h, line 255

-- 
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/20170620/c36e2992/attachment.html>


More information about the llvm-bugs mailing list