aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-10-31 06:05:32 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-10-31 06:05:32 +0000
commitda6b9997bd9bfd3da847261f1965885fc5920f4f (patch)
tree572cb11c53cf48a8c670d8e424fb75f5579b7328 /lib/Analysis/GRExprEngine.cpp
parentffda0b44eb02ddf2f168df8e14ae98de790f2b05 (diff)
Add a tentative assertion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index cf8c25a227..21fe3daa7a 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -861,10 +861,11 @@ void GRExprEngine::VisitDeclRefExpr(DeclRefExpr* Ex, NodeTy* Pred, NodeSet& Dst,
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;