forked from OSchip/llvm-project
Aliases are always definitions. Delete dead code.
llvm-svn: 207869
This commit is contained in:
parent
6c26beb770
commit
bf8bf54bfc
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue