From: Ted Kremenek Date: Thu, 21 Feb 2008 18:46:24 +0000 (+0000) Subject: FIX: Promote the correct operand. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61e090cbe19987d15e21a7006bdc97961cb114df;p=clang FIX: Promote the correct operand. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47445 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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());