From: Ted Kremenek Date: Wed, 23 Dec 2009 04:09:43 +0000 (+0000) Subject: Add stack trace pretty printing in GRExprEngine::VisitLValue(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e59df87e787d4dc53e6a1af29e89d3ea1839ef0b;p=clang Add stack trace pretty printing in GRExprEngine::VisitLValue(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91985 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index cc39618095..22becee289 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/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();