mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
Verifier: Update assert message to reflect LangRef
No functionality change, just correcting the assertion message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211977 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e5215bf73
commit
320cba3713
@ -533,7 +533,9 @@ void Verifier::visitGlobalAlias(const GlobalAlias &GA) {
|
||||
Assert1(!GA.getName().empty(),
|
||||
"Alias name cannot be empty!", &GA);
|
||||
Assert1(GlobalAlias::isValidLinkage(GA.getLinkage()),
|
||||
"Alias should have external or external weak linkage!", &GA);
|
||||
"Alias should have private, internal, linkonce, weak, linkonce_odr, "
|
||||
"weak_odr, or external linkage!",
|
||||
&GA);
|
||||
const Constant *Aliasee = GA.getAliasee();
|
||||
Assert1(Aliasee, "Aliasee cannot be NULL!", &GA);
|
||||
Assert1(GA.getType() == Aliasee->getType(),
|
||||
|
Loading…
Reference in New Issue
Block a user