Take first step to migrating handling of "stores" to values from GRExprEngine
to the plug-in GRTransferFuncs object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49801 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index dfe319f..9c6a37d 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -1637,8 +1637,11 @@
// Simulate the effects of a "store": bind the value of the RHS
// to the L-Value represented by the LHS.
- St = SetRVal(SetRVal(St, B, RightV), cast<LVal>(LeftV), RightV);
- break;
+ EvalStore(Dst, B, N2, SetRVal(St, B, RightV),
+ cast<LVal>(LeftV), RightV);
+
+// St = SetRVal(SetRVal(St, B, RightV), cast<LVal>(LeftV), RightV);
+ continue;
}
// Compound assignment operators.
@@ -1784,7 +1787,9 @@
continue;
}
- St = SetRVal(SetRVal(St, B, Result), LeftLV, Result);
+ // St = SetRVal(SetRVal(St, B, Result), LeftLV, Result);
+ EvalStore(Dst, B, N2, SetRVal(St, B, Result), LeftLV, Result);
+ continue;
}
}