File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
llvm/lib/CodeGen/LiveDebugValues Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -1375,16 +1375,9 @@ bool InstrRefBasedLDV::transferDebugValue(const MachineInstr &MI) {
1375
1375
if (!MI.isDebugValue ())
1376
1376
return false ;
1377
1377
1378
- const DILocalVariable *Var = MI.getDebugVariable ();
1379
- const DIExpression *Expr = MI.getDebugExpression ();
1380
- const DILocation *DebugLoc = MI.getDebugLoc ();
1381
- const DILocation *InlinedAt = DebugLoc->getInlinedAt ();
1382
- assert (Var->isValidLocationForIntrinsic (DebugLoc) &&
1378
+ assert (MI.getDebugVariable ()->isValidLocationForIntrinsic (MI.getDebugLoc ()) &&
1383
1379
" Expected inlined-at fields to agree" );
1384
1380
1385
- DebugVariable V (Var, Expr, InlinedAt);
1386
- DbgValueProperties Properties (MI);
1387
-
1388
1381
// If there are no instructions in this lexical scope, do no location tracking
1389
1382
// at all, this variable shouldn't get a legitimate location range.
1390
1383
auto *Scope = LS.findLexicalScope (MI.getDebugLoc ().get ());
@@ -1417,7 +1410,7 @@ bool InstrRefBasedLDV::transferDebugValue(const MachineInstr &MI) {
1417
1410
}
1418
1411
}
1419
1412
}
1420
- VTracker->defVar (MI, Properties , DebugOps);
1413
+ VTracker->defVar (MI, DbgValueProperties (MI) , DebugOps);
1421
1414
}
1422
1415
1423
1416
// If performing final tracking of transfers, report this variable definition
You can’t perform that action at this time.
0 commit comments