mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
fix a common crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45614 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5a62d0a038
commit
9bb459b554
@ -180,6 +180,10 @@ bool MachineSinking::SinkInstruction(MachineInstr *MI) {
|
||||
}
|
||||
}
|
||||
|
||||
// If there are no outputs, it must have side-effects.
|
||||
if (SuccToSinkTo == 0)
|
||||
return false;
|
||||
|
||||
// FIXME: Check that the instr doesn't have side effects etc.
|
||||
|
||||
DEBUG(cerr << "Sink instr " << *MI);
|
||||
|
Loading…
Reference in New Issue
Block a user