diff options
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index ad4ef420e9..d00cefd37d 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -197,11 +197,8 @@ static inline Value *dyn_castNotVal(Value *V) { return BinaryOperator::getNotArgument(cast<BinaryOperator>(V)); // Constants can be considered to be not'ed values... - if (ConstantIntegral *C = dyn_cast<ConstantIntegral>(V)) { - Constant *NC = *ConstantIntegral::getAllOnesValue(C->getType()) ^ *C; - assert(NC && "Couldn't constant fold an exclusive or!"); - return NC; - } + if (ConstantIntegral *C = dyn_cast<ConstantIntegral>(V)) + return *ConstantIntegral::getAllOnesValue(C->getType()) ^ *C; return 0; } |