Skip to content

Commit

Permalink
Give Tree::Optimizer::CombinedPass the transformer-class treatment.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurtis committed Aug 8, 2010
1 parent 34eb267 commit 91e9a41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Tree/Optimizer/CombinedPass.nqp
Expand Up @@ -9,7 +9,11 @@ method new (@passes) {
}

method BUILD (:@passes) {
$!transformer := Tree::Optimizer::Transformer::Combined.new(@passes)
$!transformer := self.transformer-class.new(@passes)
}

method transformer-class () {
Tree::Optimizer::Transformer::Combined;
}

method run ($tree) {
Expand Down

0 comments on commit 91e9a41

Please sign in to comment.