]> granicus.if.org Git - clang/commitdiff
Fixed bug in '=' transfer function: RHS does not have to be a non-LValue.
authorTed Kremenek <kremenek@apple.com>
Wed, 6 Feb 2008 04:41:14 +0000 (04:41 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 6 Feb 2008 04:41:14 +0000 (04:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46797 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/GRConstants.cpp

index 8656d776c86ec9b578891b8a9b8a2dd4ea904e7e..bd5cb0689b9f1d4db970db79932795cea3b5a3fb 100644 (file)
@@ -716,8 +716,7 @@ void GRConstants::VisitBinaryOperator(BinaryOperator* B,
           
         case BinaryOperator::Assign: {
           const LValue& L1 = cast<LValue>(V1);
-          const NonLValue& R2 = cast<NonLValue>(V2);
-          Nodify(Dst, B, N2, SetValue(SetValue(St, B, R2), L1, R2));
+          Nodify(Dst, B, N2, SetValue(SetValue(St, B, V2), L1, V2));
           break;
         }