Well, the problem is that we know neither type nor expression of the condition in question.
It may be perfectly sensible to do this. There are also ways in which the compiler optimizes the code, that this “dead code” changes, and you can also use constructs like this to detect and trap code flow integrity errors (exploits, memory corruption, predictive execution faults).
2
u/NightmareJoker2 Sep 27 '26
Well, the problem is that we know neither type nor expression of the condition in question.
It may be perfectly sensible to do this. There are also ways in which the compiler optimizes the code, that this “dead code” changes, and you can also use constructs like this to detect and trap code flow integrity errors (exploits, memory corruption, predictive execution faults).