Skip to content

Commit 3de1b9e

Browse files
authored
[RegAllocFast] Add missing source lines. (llvm#1188)
2 parents c5ef332 + 6e17a6c commit 3de1b9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/CodeGen/RegAllocFast.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,8 @@ void RegAllocFastImpl::handleDebugValue(MachineInstr &MI) {
18451845
Register Reg = MO.getReg();
18461846
if (!Reg.isVirtual())
18471847
continue;
1848+
if (!shouldAllocateRegister(Reg))
1849+
continue;
18481850

18491851
// Already spilled to a stackslot?
18501852
int SS = StackSlotForVirtReg[Reg];

0 commit comments

Comments
 (0)