mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 18:28:29 +00:00
Add missing null check reported by Amaury Pouly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110649 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fcfcca1d9b
commit
c120af4567
@ -59,8 +59,9 @@ SUnit *ScheduleDAGSDNodes::NewSUnit(SDNode *N) {
|
||||
SUnits.back().OrigNode = &SUnits.back();
|
||||
SUnit *SU = &SUnits.back();
|
||||
const TargetLowering &TLI = DAG->getTargetLoweringInfo();
|
||||
if (N->isMachineOpcode() &&
|
||||
N->getMachineOpcode() == TargetOpcode::IMPLICIT_DEF)
|
||||
if (!N ||
|
||||
(N->isMachineOpcode() &&
|
||||
N->getMachineOpcode() == TargetOpcode::IMPLICIT_DEF))
|
||||
SU->SchedulingPref = Sched::None;
|
||||
else
|
||||
SU->SchedulingPref = TLI.getSchedulingPreference(N);
|
||||
|
Loading…
Reference in New Issue
Block a user