diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 55c2e24eb92..6ed70e6a3a1 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2790,7 +2790,7 @@ static void CheckLineNumbers(const MachineFunction *MF) { break; } } - if (!FoundLineNo) + if (!FoundLineNo && I->size()) ++BlocksWithoutLineNo; } }