Skip to content
  • Ondřej Surý's avatar
    Simplify way we tag unreachable code with only ISC_UNREACHABLE() · 584f0d7a
    Ondřej Surý authored and Ondřej Surý's avatar Ondřej Surý committed
    Previously, the unreachable code paths would have to be tagged with:
    
        INSIST(0);
        ISC_UNREACHABLE();
    
    There was also older parts of the code that used comment annotation:
    
        /* NOTREACHED */
    
    Unify the handling of unreachable code paths to just use:
    
        UNREACHABLE();
    
    The UNREACHABLE() macro now asserts when reached and also uses
    __builtin_unreachable(); when such builtin is available in the compiler.
    584f0d7a