Skip to content

Commit

Permalink
[X86] X86DAGToDAGISel::tryFoldLoad - assert root/parent pointers are …
Browse files Browse the repository at this point in the history
…non-null. NFCI.

Silences a static analyzer warning.

llvm-svn: 372118
  • Loading branch information
RKSimon committed Sep 17, 2019
1 parent c52a709 commit f12a3da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Expand Up @@ -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))
Expand Down

0 comments on commit f12a3da

Please sign in to comment.