Rory McIlroy overcame what he thinks was a touch of sunstroke to move into a share of the halfway lead at the DP World Tour Championship in Dubai.