mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix for -pre-RA-sched=source.
Yet another case of unchecked NULL node (for physreg copy). May fix PR9509. llvm-svn: 128266
This commit is contained in:
parent
3772213010
commit
651a3701f9
@ -1500,6 +1500,8 @@ public:
|
||||
unsigned getNodePriority(const SUnit *SU) const;
|
||||
|
||||
unsigned getNodeOrdering(const SUnit *SU) const {
|
||||
if (!SU->getNode()) return 0;
|
||||
|
||||
return scheduleDAG->DAG->GetOrdering(SU->getNode());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user