Verifier: Update assert message to reflect LangRef

No functionality change, just correcting the assertion message.

llvm-svn: 211977
This commit is contained in:
David Majnemer 2014-06-28 06:24:49 +00:00
parent bd0717d7cc
commit 329b5602d7
1 changed files with 3 additions and 1 deletions

View File

@ -533,7 +533,9 @@ void Verifier::visitGlobalAlias(const GlobalAlias &GA) {
Assert1(!GA.getName().empty(), Assert1(!GA.getName().empty(),
"Alias name cannot be empty!", &GA); "Alias name cannot be empty!", &GA);
Assert1(GlobalAlias::isValidLinkage(GA.getLinkage()), 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(); const Constant *Aliasee = GA.getAliasee();
Assert1(Aliasee, "Aliasee cannot be NULL!", &GA); Assert1(Aliasee, "Aliasee cannot be NULL!", &GA);
Assert1(GA.getType() == Aliasee->getType(), Assert1(GA.getType() == Aliasee->getType(),