Skip to content
Snippets Groups Projects
Commit 1caf26aa authored by Ted Kremenek's avatar Ted Kremenek
Browse files

Added missing case in constant propagation logic for handling the Xor of

two concrete integer values.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47341 91177308-0d34-0410-b5e6-96231b3b80d8
parent b5339121
No related branches found
No related tags found
No related merge requests found
...@@ -130,5 +130,8 @@ ValueManager::EvaluateAPSInt(BinaryOperator::Opcode Op, ...@@ -130,5 +130,8 @@ ValueManager::EvaluateAPSInt(BinaryOperator::Opcode Op,
case BinaryOperator::Or: case BinaryOperator::Or:
return getValue( V1 | V2 ); return getValue( V1 | V2 );
case BinaryOperator::Xor:
return getValue( V1 ^ V2 );
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment