[cfe-commits] r47445 - /cfe/trunk/Analysis/GRExprEngine.cpp

Ted Kremenek kremenek at apple.com
Thu Feb 21 10:46:24 PST 2008


Author: kremenek
Date: Thu Feb 21 12:46:24 2008
New Revision: 47445

URL: http://llvm.org/viewvc/llvm-project?rev=47445&view=rev
Log:
FIX: Promote the correct operand.

Modified:
    cfe/trunk/Analysis/GRExprEngine.cpp

Modified: cfe/trunk/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRExprEngine.cpp?rev=47445&r1=47444&r2=47445&view=diff

==============================================================================
--- cfe/trunk/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/Analysis/GRExprEngine.cpp Thu Feb 21 12:46:24 2008
@@ -946,7 +946,7 @@
           
           // 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());





More information about the cfe-commits mailing list