]> granicus.if.org Git - llvm/commitdiff
remove redundant check
authorAdrian Prantl <aprantl@apple.com>
Thu, 27 Jul 2017 15:24:20 +0000 (15:24 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 27 Jul 2017 15:24:20 +0000 (15:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309280 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index d2085e341904308918e4a10d0f99a7cb6b340526..3fa00e50c5cc508b082c9368df03532d69c3d802 100644 (file)
@@ -692,7 +692,7 @@ void DwarfDebug::finalizeModuleInfo() {
 
   // Emit all frontend-produced Skeleton CUs, i.e., Clang modules.
   for (auto *CUNode : MMI->getModule()->debug_compile_units())
-    if (CUNode->getDWOId() && isEmptyCU(CUNode))
+    if (CUNode->getDWOId())
       getOrCreateDwarfCompileUnit(CUNode);
 
   // Compute DIE offsets and sizes.