The phase diagram of the quasi-2D Ce(Ir,Rh)In5 system contains two distinct superconducting domes. By the thermal transport measurements in rotating magnetic fields H, we pinned down the superconducting gap structure of CeIrIn5 in the second dome, located distant from the first dome in proximity to an antiferromagnetic quantum critical point. Clear fourfold oscillation was observed when H is rotated within the ab plane, while no oscillation was observed within the bc plane. In sharp contrast to previous reports, our results are most consistent with dx2-y2 symmetry, implying that the superconductivity in the second phase is also mediated by antiferromagnetic spin fluctuations.