Bug fix: use GetRVal instead of GetLVal (were getting the value of a DeclRefExpr, not it's address).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48846 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index 03f7d1d..bce1cbd 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -1128,7 +1128,7 @@
   
   if (Expr* Receiver = ME->getReceiver()) {
   
-    RVal L = GetLVal(St, Receiver);
+    RVal L = GetRVal(St, Receiver);
     
     // Check for undefined control-flow or calls to NULL.