A lot of developers skip right over the phase where they respectfully seek clarity about a difficult situation right into "speaking up" and lambasting their manager for perceived slights.
Those are the situations where "speaking up" does not help. Trying to have an honest and earnest conversation should always be the first step.