note to self: *save* file, then check it in
authorChris Lattner <sabre@nondot.org>
Fri, 31 Mar 2006 06:04:53 +0000 (06:04 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 31 Mar 2006 06:04:53 +0000 (06:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27291 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 76fcde65b8df7bac05f785577b94d3f9669608cb..b92e4f35cdc4c4f6efb66730799ec4304d9755e8 100644 (file)
@@ -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;