llvm_unreachable() and LLVM_ASSUME_ALIGNED use
defined(LLVM_BUILTIN_UNREACHABLE) to check whether it has a
definition. Remove the fallback added in 26827337dff26ba3 (as a drive-by
when updating the GCC logic) and add a comment to prevent future
mistakes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Alternatively, maybe we don't support building with compilers that don't have a builtin unreachable anymore, and can have:
#else #error
and we can simplify logic that depends on this macro... but it seems bit friendlier to keep this alive since it doesn't seem hard.
Comment Actions
Thanks for the review! Landed in 892c104fb71b86dc6399e36a82ae920e00ccae17.
(Can always do that as a follow-up if it makes sense.)