I'm getting an error in the verifier after running a custom pass:
Alias should have external or external weak linkage!
This constraint isn't mentioned in the LangRef. According to the verifier code, the only permitted linkage types for a GlobalAlias are external, internal and weak.
Why is that? The LangRef describes weak in terms of common, and common in terms of linkonce. Is there some semantic reason that an alias with common or linkonce wouldn't make sense, or is it just a case that this part of the verifier was never updated when new linkage types were added?