From: Ted Kremenek Date: Tue, 19 Feb 2008 20:53:37 +0000 (+0000) Subject: Added missing case in constant propagation logic for handling the Xor of X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1caf26aa84a95abcd9d48bc08f9919d7ede07e9e;p=clang 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 --- diff --git a/Analysis/ValueManager.cpp b/Analysis/ValueManager.cpp index 61a2154c34..64f4b27d3f 100644 --- a/Analysis/ValueManager.cpp +++ b/Analysis/ValueManager.cpp @@ -130,5 +130,8 @@ ValueManager::EvaluateAPSInt(BinaryOperator::Opcode Op, case BinaryOperator::Or: return getValue( V1 | V2 ); + + case BinaryOperator::Xor: + return getValue( V1 ^ V2 ); } }