diff options
author | Andrew Trick <atrick@apple.com> | 2011-03-25 06:40:55 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-03-25 06:40:55 +0000 |
commit | 3bd8b7a3882910425a7f175f477ea9c9b82e3124 (patch) | |
tree | 56285eaeaed427b1c8dfa4b9b98efa0de4e28a4a /llvm/lib/CodeGen | |
parent | 0e25c8b364195456c49bbc13f2ddf89243287528 (diff) | |
download | bcm5719-llvm-3bd8b7a3882910425a7f175f477ea9c9b82e3124.tar.gz bcm5719-llvm-3bd8b7a3882910425a7f175f477ea9c9b82e3124.zip |
Fix for -pre-RA-sched=source.
Yet another case of unchecked NULL node (for physreg copy).
May fix PR9509.
llvm-svn: 128266
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index f02d78f6134..f5a5db89fa0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -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()); } |