summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit329b5602d7a9ab49cbdd9455b1a6bb9d187d3c37 (patch)
tree3c35eddef738925d2f814ca179a4dd717448a3dd /llvm/lib/IR/Verifier.cpp
parentbd0717d7cc9c3a6c028ea6f5e7e7fbabe74c59d2 (diff)
downloadbcm5719-llvm-329b5602d7a9ab49cbdd9455b1a6bb9d187d3c37.tar.gz
bcm5719-llvm-329b5602d7a9ab49cbdd9455b1a6bb9d187d3c37.zip
Verifier: Update assert message to reflect LangRef
No functionality change, just correcting the assertion message. llvm-svn: 211977
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 24f3acb9953..314bad36b15 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(),
OpenPOWER on IntegriCloud