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: unassignedclangb...@nondot.org
          Reporter: r...@google.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to