fix a common crash.

llvm-svn: 45614
This commit is contained in:
Chris Lattner
2008-01-05 01:39:17 +00:00
parent e666bc272d
commit 6ec78274df

View File

@@ -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);