Issue 156820
Summary clang-21.1.0 regression: Cannot select: intrinsic %llvm.coro.noop
Labels new issue
Assignees
Reporter vogelsgesang
    Clang 21.1.0 crashes with the message

> fatal error: error in backend: Cannot select: intrinsic %llvm.coro.noop

when compiling

```c++
#include <coroutine>

void x() {
    std::noop_coroutine();
}
```

with clang 21 and the flags `-std=c++23 -O0 -stdlib=libc++`.

https://godbolt.org/z/Gnb6Mvoao

The same code compiles in clang 20.1.0.

Note that the code compiles fine as soon as the same file contains an actual coroutine. Probably we skip the `%llvm.coro.noop`-lowering pass if the translation unit does not contain any coroutine
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to