Ensure bitcode encoding of global variable attributes stays stable. Patch by Boaz Ouriel.