[cfe-commits] r48846 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp

Ted Kremenek kremenek at apple.com
Wed Mar 26 15:21:58 PDT 2008


Author: kremenek
Date: Wed Mar 26 17:21:58 2008
New Revision: 48846

URL: http://llvm.org/viewvc/llvm-project?rev=48846&view=rev
Log:
Bug fix: use GetRVal instead of GetLVal (were getting the value of a DeclRefExpr, not it's address).

Modified:
    cfe/trunk/lib/Analysis/GRExprEngine.cpp

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

==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Wed Mar 26 17:21:58 2008
@@ -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.
     





More information about the cfe-commits mailing list