[PATCH] D102817: [Windows SEH]: HARDWARE EXCEPTION HANDLING (MSVC -EHa) - Part 2

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 29 08:55:44 PDT 2023


pengfei added a comment.

In D102817#4079631 <https://reviews.llvm.org/D102817#4079631>, @victork1996 wrote:

> Hi @tentzen  :)
> I compiled clang's main branch after applying these changes, and I think I found a bug. 
> I tried to compile the following code with the "-fasync-exceptions" flag and the compiler crashed :(
> can you take a look?
>
>   void foo()
>   {
>       try
>       {}
>       catch (...)
>       {
>           // The 'return' statement causes a crash, it compiles just fine without the 'return'.
>           return;
>       }
>   }
>
> thanks :)

I can fix the crash by D147165 <https://reviews.llvm.org/D147165>, but I don't have confidence whether the codegen is expected or not. Please take a look, thanks!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102817/new/

https://reviews.llvm.org/D102817



More information about the llvm-commits mailing list