diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2006-10-22 21:38:24 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2006-10-22 21:38:24 +0000 |
commit | 92a8b71dc179d5ecad2208bf1ff02086cda47e6f (patch) | |
tree | 8b5ab171e5803e72b5ba80811759e2ce2c240ad1 /lib/Transforms | |
parent | 1a3ecbb4a63980bdb0b67d7344e528a72cc94d15 (diff) | |
download | external_llvm-92a8b71dc179d5ecad2208bf1ff02086cda47e6f.zip external_llvm-92a8b71dc179d5ecad2208bf1ff02086cda47e6f.tar.gz external_llvm-92a8b71dc179d5ecad2208bf1ff02086cda47e6f.tar.bz2 |
Whoops! Add missing NULL check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/PredicateSimplifier.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/PredicateSimplifier.cpp b/lib/Transforms/Scalar/PredicateSimplifier.cpp index ca0d056..6cda6d2 100644 --- a/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -350,6 +350,7 @@ namespace { } break; case Instruction::Xor: { ConstantIntegral *CI = dyn_cast<ConstantIntegral>(V1); + if (!CI) break; if (CI->isAllOnesValue()) { if (BO->getOperand(0) == V1) add(Opcode, ConstantBool::getFalse(), BO->getOperand(1), false); |