summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 76fcde65b8d..b92e4f35cdc 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud