diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 76fcde65b8d..b92e4f35cdc 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1392,7 +1392,7 @@ SDOperand PPCTargetLowering::PerformDAGCombine(SDNode *N, } // If there are non-zero uses of the flag value, use the VCMPo node! - if (!VCMPoNode->hasNUsesOfValue(0, 1)) + if (VCMPoNode && !VCMPoNode->hasNUsesOfValue(0, 1)) return SDOperand(VCMPoNode, 0); } break;