aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-15 02:35:08 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-15 02:35:08 +0000
commit5631a73dbbcc49ee3c524eb5a96ac9f01324da1a (patch)
tree39fb979d90f0317dcb85782d230d23cfc61f7b05 /lib/Analysis/GRExprEngine.cpp
parent0b685a5e4a473b180b7d2f433aaf09b91d3a0f78 (diff)
Re-enable an assertion that I mistakenly removed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index b1272c2496..c6f7e9bc88 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -870,13 +870,7 @@ void GRExprEngine::VisitDeclRefExpr(DeclRefExpr* Ex, NodeTy* Pred, NodeSet& Dst,
return;
} else if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(D)) {
- // FIXME: Does this need to be revised? We were getting cases in
- // real code that did this.
-
- // FIXME: This is not a valid assertion. Produce a test case that
- // refutes it.
- // assert(asLValue); // Can we assume this?
-
+ assert(asLValue);
SVal V = loc::FuncVal(FD);
MakeNode(Dst, Ex, Pred, BindExpr(St, Ex, V));
return;