HomeFreeBSD

vm_radix: prefer __builtin_unreachable() to an unreachable panic()

Description

vm_radix: prefer __builtin_unreachable() to an unreachable panic()

This provides the needed hint to GCC and offers an annotation for readers to
observe that it's in-fact impossible to hit this point. We'll get hit with a
a -Wswitch error if the enum applicable to the switch above were to get
expanded without the new value(s) being handled.

Details

Provenance
kevansAuthored on Feb 22 2020, 4:20 PM
Parents
rG6ebb17dfa74d: riscv: Set MACHINE_ARCH correctly
Branches
Unknown
Tags
Unknown

Event Timeline