mstorsjo wrote:

This triggers failures when building with `-fasync-exceptions`, which is used 
widely by Wine. Reduced repro:
```c
long a() {
  long b;
  __try {
    b;
  } __except (a()) {
  }
}
```
```console
$ clang -target x86_64-windows -c async-repro.c -fasync-exceptions
clang: ../include/llvm/IR/BasicBlock.h:238: const llvm::Instruction* 
llvm::BasicBlock::getTerminator() const: Assertion `hasTerminator() && "cannot 
get terminator of non-well-formed block"' failed.
```

CC @cjacek

https://github.com/llvm/llvm-project/pull/189416
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to