[llvm] r207869 - Aliases are always definitions. Delete dead code.
Rafael Espindola
rafael.espindola at gmail.com
Fri May 2 14:10:49 PDT 2014
Author: rafael
Date: Fri May 2 16:10:48 2014
New Revision: 207869
URL: http://llvm.org/viewvc/llvm-project?rev=207869&view=rev
Log:
Aliases are always definitions. Delete dead code.
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=207869&r1=207868&r2=207869&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Fri May 2 16:10:48 2014
@@ -356,12 +356,8 @@ void Verifier::visit(Instruction &I) {
void Verifier::visitGlobalValue(const GlobalValue &GV) {
- Assert1(!GV.isDeclaration() ||
- GV.isMaterializable() ||
- GV.hasExternalLinkage() ||
- GV.hasExternalWeakLinkage() ||
- (isa<GlobalAlias>(GV) &&
- (GV.hasLocalLinkage() || GV.hasWeakLinkage())),
+ Assert1(!GV.isDeclaration() || GV.isMaterializable() ||
+ GV.hasExternalLinkage() || GV.hasExternalWeakLinkage(),
"Global is external, but doesn't have external or weak linkage!",
&GV);
More information about the llvm-commits
mailing list