mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
DebugInfo: factor out dead variable in NDEBUG from r235050
Caught by the lld bot: http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/9832 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -719,8 +719,7 @@ void DwarfDebug::collectVariableInfoFromMMITable(
|
|||||||
if (!Scope)
|
if (!Scope)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
DIVariable DV = cast<MDLocalVariable>(VI.Var);
|
assert(VI.Var->isValidLocationForIntrinsic(VI.Loc) &&
|
||||||
assert(DV->isValidLocationForIntrinsic(VI.Loc) &&
|
|
||||||
"Expected inlined-at fields to agree");
|
"Expected inlined-at fields to agree");
|
||||||
DIExpression Expr = cast_or_null<MDExpression>(VI.Expr);
|
DIExpression Expr = cast_or_null<MDExpression>(VI.Expr);
|
||||||
ensureAbstractVariableIsCreatedIfScoped(Var, Scope->getScopeNode());
|
ensureAbstractVariableIsCreatedIfScoped(Var, Scope->getScopeNode());
|
||||||
|
Reference in New Issue
Block a user