diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 22:42:43 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 22:42:43 +0000 |
| commit | 768d96ca6f26061e6b007a9f4d219756041b7145 (patch) | |
| tree | 5e376ad62c90e18d9bf9c320870caacd8275a88f /llvm/lib | |
| parent | 773ba375293d39cd60ee5e00aad8e5cf38667ae3 (diff) | |
| download | bcm5719-llvm-768d96ca6f26061e6b007a9f4d219756041b7145.tar.gz bcm5719-llvm-768d96ca6f26061e6b007a9f4d219756041b7145.zip | |
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
llvm-svn: 235052
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 631d13167bd..665b9824a2a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -719,8 +719,7 @@ void DwarfDebug::collectVariableInfoFromMMITable( if (!Scope) continue; - DIVariable DV = cast<MDLocalVariable>(VI.Var); - assert(DV->isValidLocationForIntrinsic(VI.Loc) && + assert(VI.Var->isValidLocationForIntrinsic(VI.Loc) && "Expected inlined-at fields to agree"); DIExpression Expr = cast_or_null<MDExpression>(VI.Expr); ensureAbstractVariableIsCreatedIfScoped(Var, Scope->getScopeNode()); |

