diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-12-23 04:09:43 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-12-23 04:09:43 +0000 |
commit | 76d5225271a6d44b4f14777b81c76980dd4b5be6 (patch) | |
tree | 23f62cc91b77a542364b5f382b2f297ad604e80e /clang/lib/Analysis/GRExprEngine.cpp | |
parent | 49ace5cd62ed988ddb0b0493b9e88146eb6f074c (diff) | |
download | bcm5719-llvm-76d5225271a6d44b4f14777b81c76980dd4b5be6.tar.gz bcm5719-llvm-76d5225271a6d44b4f14777b81c76980dd4b5be6.zip |
Add stack trace pretty printing in GRExprEngine::VisitLValue().
llvm-svn: 91985
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | clang/lib/Analysis/GRExprEngine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index cc39618095f..22becee2892 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -744,6 +744,10 @@ void GRExprEngine::Visit(Stmt* S, ExplodedNode* Pred, ExplodedNodeSet& Dst) { void GRExprEngine::VisitLValue(Expr* Ex, ExplodedNode* Pred, ExplodedNodeSet& Dst) { + + PrettyStackTraceLoc CrashInfo(getContext().getSourceManager(), + Ex->getLocStart(), + "Error evaluating statement"); Ex = Ex->IgnoreParens(); |