summaryrefslogtreecommitdiff
path: root/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-06-28 06:24:49 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-06-28 06:24:49 +0000
commit320cba37135aa22e9aa05e719998347fb85b7409 (patch)
tree21b20aef5f99d8f78805cc10bc57d95e399b1b0a /lib/IR/Verifier.cpp
parent3e5215bf73401752282425e412fa16a6a6b2c7ae (diff)
downloadllvm-320cba37135aa22e9aa05e719998347fb85b7409.tar.gz
llvm-320cba37135aa22e9aa05e719998347fb85b7409.tar.bz2
llvm-320cba37135aa22e9aa05e719998347fb85b7409.tar.xz
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
Diffstat (limited to 'lib/IR/Verifier.cpp')
-rw-r--r--lib/IR/Verifier.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp
index 24f3acb995..314bad36b1 100644
--- a/lib/IR/Verifier.cpp
+++ b/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(),