[llvm] r309280 - remove redundant check
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 27 08:24:20 PDT 2017
Author: adrian
Date: Thu Jul 27 08:24:20 2017
New Revision: 309280
URL: http://llvm.org/viewvc/llvm-project?rev=309280&view=rev
Log:
remove redundant check
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=309280&r1=309279&r2=309280&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Jul 27 08:24:20 2017
@@ -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.
More information about the llvm-commits
mailing list