Don't disassemble IR if no logging

As logging is now tied with the debugger,
don't disassemble the current instruction
only to be discarded. Also avoids
warnings about unused "buf".