From: Chris Lattner Date: Fri, 31 Mar 2006 06:04:53 +0000 (+0000) Subject: note to self: *save* file, then check it in X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=33497cc99210b45eede30b35909929eebe06d734;p=oota-llvm.git note to self: *save* file, then check it in git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27291 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;