From 329b5602d7a9ab49cbdd9455b1a6bb9d187d3c37 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sat, 28 Jun 2014 06:24:49 +0000 Subject: [PATCH] Verifier: Update assert message to reflect LangRef No functionality change, just correcting the assertion message. llvm-svn: 211977 --- llvm/lib/IR/Verifier.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 24f3acb9953a..314bad36b155 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -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(),