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

Zhongxing Xu xuzhongxing at gmail.com
Thu Oct 30 23:05:33 PDT 2008


Author: zhongxingxu
Date: Fri Oct 31 01:05:32 2008
New Revision: 58492

URL: http://llvm.org/viewvc/llvm-project?rev=58492&view=rev
Log:
Add a tentative assertion.

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=58492&r1=58491&r2=58492&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Fri Oct 31 01:05:32 2008
@@ -861,10 +861,11 @@
     return;
 
   } else if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(D)) {
-    // We return the loc::FuncVal for an FunctionDecl in both rvalue
-    // and lvalue contexts.
     // FIXME: Does this need to be revised?  We were getting cases in
     //  real code that did this.
+
+    assert(asLValue); // Can we assume this?
+
     SVal V = loc::FuncVal(FD);
     MakeNode(Dst, Ex, Pred, BindExpr(St, Ex, V));
     return;





More information about the cfe-commits mailing list