Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 8841dce

Browse files
alexcrichtonluqmana
authored andcommitted
Work around an assertion that rust is tripping
1 parent 69b77f2 commit 8841dce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/CodeGen/InlineSpiller.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,8 @@ foldMemoryOperand(ArrayRef<std::pair<MachineInstr*, unsigned> > Ops,
11061106
}
11071107
if (RI.Defines)
11081108
continue;
1109+
if (!MO->isDead())
1110+
continue;
11091111
// FoldMI does not define this physreg. Remove the LI segment.
11101112
assert(MO->isDead() && "Cannot fold physreg def");
11111113
for (MCRegUnitIterator Units(Reg, &TRI); Units.isValid(); ++Units) {

0 commit comments

Comments
 (0)