forked from OSchip/llvm-project
[X86] X86DAGToDAGISel::tryFoldLoad - assert root/parent pointers are non-null. NFCI.
Silences a static analyzer warning. llvm-svn: 372118
This commit is contained in:
parent
c52a7093df
commit
f12a3da5a7
|
@ -2581,6 +2581,7 @@ bool X86DAGToDAGISel::tryFoldLoad(SDNode *Root, SDNode *P, SDValue N,
|
|||
SDValue &Base, SDValue &Scale,
|
||||
SDValue &Index, SDValue &Disp,
|
||||
SDValue &Segment) {
|
||||
assert(Root && P && "Unknown root/parent nodes");
|
||||
if (!ISD::isNON_EXTLoad(N.getNode()) ||
|
||||
!IsProfitableToFold(N, P, Root) ||
|
||||
!IsLegalToFold(N, P, Root, OptLevel))
|
||||
|
|
Loading…
Reference in New Issue