From 1caf26aa84a95abcd9d48bc08f9919d7ede07e9e Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 19 Feb 2008 20:53:37 +0000 Subject: [PATCH] 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 --- Analysis/ValueManager.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 ); } } -- 2.50.1