CompilerFailure: don't mutate compiler hashes

Fixes #28357.