Pakistan is not hostile to Iran, but they do have there localized spats in the Balochstan region where separatists cause problems.
Because the top level of Government does not harbor open hostility towards Iran doesn't mean there aren't elements in the Pakistan Government, aligned with the (Sunni) Taliban, who are hostile to Shi'a Islam.