Implement Statement::toIR in terms of a visitor interface
Merge pull request #2754 from yebblies/s2irvisitor

Implement Statement::toIR in terms of a visitor interface