mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Aliases are always definitions. Delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f41cc33836
commit
d036fefe34
@ -356,12 +356,8 @@ void Verifier::visit(Instruction &I) {
|
|||||||
|
|
||||||
|
|
||||||
void Verifier::visitGlobalValue(const GlobalValue &GV) {
|
void Verifier::visitGlobalValue(const GlobalValue &GV) {
|
||||||
Assert1(!GV.isDeclaration() ||
|
Assert1(!GV.isDeclaration() || GV.isMaterializable() ||
|
||||||
GV.isMaterializable() ||
|
GV.hasExternalLinkage() || GV.hasExternalWeakLinkage(),
|
||||||
GV.hasExternalLinkage() ||
|
|
||||||
GV.hasExternalWeakLinkage() ||
|
|
||||||
(isa<GlobalAlias>(GV) &&
|
|
||||||
(GV.hasLocalLinkage() || GV.hasWeakLinkage())),
|
|
||||||
"Global is external, but doesn't have external or weak linkage!",
|
"Global is external, but doesn't have external or weak linkage!",
|
||||||
&GV);
|
&GV);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user