3 ms·Even better, just actually perform undefined behavior on that branch and the compiler will get rid of it.by saagarjha 7y agoEven better, just actually perform undefined behavior on that branch and the compiler will get rid of it.kevincox 7y agoThis is literally what __builtin_unreachable() does. But it has the added benefit of the compiler understanding the intent so it works well with diagnostics.saagarjha 7y agoBut that's a builtin, rather than something that's part of the core language :)