[llvm] r235052 - DebugInfo: factor out dead variable in NDEBUG from r235050
Duncan P. N. Exon Smith
dexonsmith at apple.com
Wed Apr 15 15:42:43 PDT 2015
Author: dexonsmith
Date: Wed Apr 15 17:42:43 2015
New Revision: 235052
URL: http://llvm.org/viewvc/llvm-project?rev=235052&view=rev
Log:
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
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=235052&r1=235051&r2=235052&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed Apr 15 17:42:43 2015
@@ -719,8 +719,7 @@ void DwarfDebug::collectVariableInfoFrom
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());
More information about the llvm-commits
mailing list