From: Rafael Espindola Date: Sun, 8 Dec 2013 17:19:18 +0000 (+0000) Subject: GlobalAlias::isDeclaration is always false. Remove dead code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16d05945811bc8ef7f8ded360972043711c9c798;p=clang GlobalAlias::isDeclaration is always false. Remove dead code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196727 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 792fbfce33..08c0d0de5c 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -1020,11 +1020,6 @@ void CodeGenModule::EmitDeferred() { if (!CGRef->isDeclaration()) continue; - // GlobalAlias::isDeclaration() defers to the aliasee, but for our - // purposes an alias counts as a definition. - if (isa(CGRef)) - continue; - // Otherwise, emit the definition and move on to the next one. EmitGlobalDefinition(D); }