From: David Blaikie Date: Wed, 14 May 2014 22:51:59 +0000 (+0000) Subject: DwarfDebug: Don't set frame index locations on abstract variables. X-Git-Tag: android-x86-7.1-r4~61684 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=dc3725862b05d4f3f070feefadf3a6a46ebf272c;p=android-x86%2Fexternal-llvm.git DwarfDebug: Don't set frame index locations on abstract variables. Abstract variables should never have/use locations. In this case the data wasn't used, so no functional change intended here, just simplification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208820 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 2b445977750..5585f253918 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1142,8 +1142,6 @@ void DwarfDebug::collectVariableInfoFromMMITable( RegVar->setFrameIndex(VI.Slot); if (!addCurrentFnArgument(RegVar, Scope)) addScopeVariable(Scope, RegVar); - if (AbsDbgVariable) - AbsDbgVariable->setFrameIndex(VI.Slot); } }