From a380e613f1068db8b4b6c688c4894ce584c32d82 Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Wed, 1 Feb 2017 21:54:50 +0000 Subject: Remove an assertion that doesn't hold when mixing -g and -gmlt through LTO. Part of PR31437. Differential Revision: http://reviews.llvm.org/D29310 llvm-svn: 293818 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 8e2f4f2551a..81de9382aac 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1217,7 +1217,6 @@ void DwarfDebug::endFunction(const MachineFunction *MF) { TheCU.getCUNode()->getEmissionKind() == DICompileUnit::LineTablesOnly && LScopes.getAbstractScopesList().empty() && !IsDarwin) { assert(InfoHolder.getScopeVariables().empty()); - assert(DbgValues.empty()); // FIXME: This wouldn't be true in LTO with a -g (with inlining) CU followed // by a -gmlt CU. Add a test and remove this assertion. assert(AbstractVariables.empty()); -- cgit v1.2.3