[clang] Fix init_priority attribute by delaying type checks after the type is deduced (#182208)
This PR fixes the way we are dealing with type checks for the
`init_priority`
attribute, by delaying these checks after we are deducing the type.
It is a follow up from the list of affected attributes in PR #164440.