1

I know it's not a bug, but a feature. Hex Rays found that there's a variable which is set to specific value, thus there's no need to display the branches where the code will never be run, so it warns me about the optimizations:

conditional instruction was optimized away because of '%var_8.1==0'

Is there any way to make it show all the code branches and stop optimizing it?

1

Try marking the variable as volatile

3
  • I can't, it was also optimized :) – Anton Kukoba Jan 31 at 13:52
  • @AntonKukoba maybe try doing it on the stack frame variable (Ctrl-K) – Igor Skochinsky Feb 1 at 8:09
  • I tried it too, it doesn't change anything – Anton Kukoba Feb 1 at 9:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.