Whoops! Add missing NULL check.

llvm-svn: 31121
This commit is contained in:
Nick Lewycky 2006-10-22 21:38:24 +00:00
parent 41a83d7871
commit af2b0571d0
1 changed files with 1 additions and 0 deletions

View File

@ -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);