Rory McIlroy stuck to his gameplan and saw the difficult conditions as a challenge as he earned a share of the lead going into the final round of the Canadian Open.