Skip to content

Commit f1931b6

Browse files
committed
[𝘀𝗽𝗿] changes to main this commit is based on
Created using spr 1.3.6-beta.1 [skip ci]
1 parent ef6d187 commit f1931b6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,6 @@ void llvm::calculateDbgEntityHistory(const MachineFunction *MF,
466466
for (const auto &MI : MBB) {
467467
if (MI.isDebugValue()) {
468468
assert(MI.getNumOperands() > 1 && "Invalid DBG_VALUE instruction!");
469-
// Use the base variable (without any DW_OP_piece expressions)
470-
// as index into History. The full variables including the
471-
// piece expressions are attached to the MI.
472469
const DILocalVariable *RawVar = MI.getDebugVariable();
473470
assert(RawVar->isValidLocationForIntrinsic(MI.getDebugLoc()) &&
474471
"Expected inlined-at fields to agree");
@@ -492,8 +489,7 @@ void llvm::calculateDbgEntityHistory(const MachineFunction *MF,
492489
if (MI.isMetaInstruction())
493490
continue;
494491

495-
// Not a DBG_VALUE instruction. It may clobber registers which describe
496-
// some variables.
492+
// Other instruction may clobber registers which describe some variables.
497493
for (const MachineOperand &MO : MI.operands()) {
498494
if (MO.isReg() && MO.isDef() && MO.getReg()) {
499495
// Ignore call instructions that claim to clobber SP. The AArch64

0 commit comments

Comments
 (0)