[llvm] r211977 - Verifier: Update assert message to reflect LangRef
David Majnemer
david.majnemer at gmail.com
Fri Jun 27 23:24:49 PDT 2014
Author: majnemer
Date: Sat Jun 28 01:24:49 2014
New Revision: 211977
URL: http://llvm.org/viewvc/llvm-project?rev=211977&view=rev
Log:
Verifier: Update assert message to reflect LangRef
No functionality change, just correcting the assertion message.
Modified:
llvm/trunk/lib/IR/Verifier.cpp
Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=211977&r1=211976&r2=211977&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Sat Jun 28 01:24:49 2014
@@ -533,7 +533,9 @@ void Verifier::visitGlobalAlias(const Gl
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(),
More information about the llvm-commits
mailing list