]> granicus.if.org Git - clang/commitdiff
FIX: Promote the correct operand.
authorTed Kremenek <kremenek@apple.com>
Thu, 21 Feb 2008 18:46:24 +0000 (18:46 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 21 Feb 2008 18:46:24 +0000 (18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47445 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/GRExprEngine.cpp

index 51b0a597eede004f2a41d829f2559da8bf88568b..c326df549954d4edaad0965bda6d27b448b11d0a 100644 (file)
@@ -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());