]> granicus.if.org Git - clang/commitdiff
GlobalAlias::isDeclaration is always false. Remove dead code.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 8 Dec 2013 17:19:18 +0000 (17:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 8 Dec 2013 17:19:18 +0000 (17:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196727 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index 792fbfce33497bc7d20d1af1d88214b1443eada2..08c0d0de5c6829cc1cf4319dfc8fde5e0ad847f7 100644 (file)
@@ -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<llvm::GlobalAlias>(CGRef))
-      continue;
-
     // Otherwise, emit the definition and move on to the next one.
     EmitGlobalDefinition(D);
   }