Move [[nodiscard]] before static. (#9117)
Move [[nodiscard]] before static. (#9117)

For some reason on gcc 11, putting the [[nodiscard]] attribute after
`static` results in a parse error and attribute ignored warning. I
haven't looked into this further: I just swapped the order in the one
case where we have this.

Fixes #9025
iree-org/iree,iree-org/iree,google/iree,iree-org/iree,google/iree,google/iree,google/iree,iree-org/iree,google/iree,iree-org/iree,iree-org/iree,google/iree,iree-org/iree,google/iree