From: Adrian Prantl Date: Thu, 29 May 2014 16:56:48 +0000 (+0000) Subject: Debug Info: Remove unused code. The MInsn of an _abstract_ variable is X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d7b7c5ba04ac6f6eecf12192816e14ba2850099;p=llvm Debug Info: Remove unused code. The MInsn of an _abstract_ variable is never used again and updating the abstract variable for each inlined instance of it was questionable in the first place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209829 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 2a0615d74f6..66ba9298c40 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1179,8 +1179,6 @@ DwarfDebug::collectVariableInfo(SmallPtrSet &Processed) { DbgVariable *RegVar = new DbgVariable(DV, AbsVar, this); if (!addCurrentFnArgument(RegVar, Scope)) addScopeVariable(Scope, RegVar); - if (AbsVar) - AbsVar->setMInsn(MInsn); // Check if the first DBG_VALUE is valid for the rest of the function. if (Ranges.size() == 1 && Ranges.front().second == nullptr) {