Fix PR5023: The instruction form of DominatorTree::dominates did not