[Openmp-commits] [openmp] [OpenMP][libomptarget] Fixes possible no-return warning (PR #70808)

Jan Patrick Lehr via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 1 03:39:23 PDT 2023


jplehr wrote:

I was thinking about this again, and I believe that `__builtin_unreachable` is not the right thing to use here. It's not technically unreachable, is it?
It should not be reached, and this is why it prints a message and traps.

I wonder if we should instead rename/add another macro that carries that semantic.

https://github.com/llvm/llvm-project/pull/70808


More information about the Openmp-commits mailing list