aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-02-21 18:46:24 +0000
committerTed Kremenek <kremenek@apple.com>2008-02-21 18:46:24 +0000
commit61e090cbe19987d15e21a7006bdc97961cb114df (patch)
tree326688daf6e943f1e3443d39c6abf8c7121e461d
parent9ef1ec98a8fc17e7560e07641184bc4daee39b46 (diff)
FIX: Promote the correct operand.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47445 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Analysis/GRExprEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Analysis/GRExprEngine.cpp b/Analysis/GRExprEngine.cpp
index 51b0a597ee..c326df5499 100644
--- a/Analysis/GRExprEngine.cpp
+++ b/Analysis/GRExprEngine.cpp
@@ -946,7 +946,7 @@ void GRExprEngine::VisitBinaryOperator(BinaryOperator* B,
// Perform promotions.
V = EvalCast(V, CTy);
- RightV = EvalCast(V, CTy);
+ RightV = EvalCast(RightV, CTy);
// Evaluate operands and promote to result type.
RVal Result = EvalCast(EvalBinOp(Op, V, RightV), B->getType());