Add stack trace pretty printing in GRExprEngine::VisitLValue().

llvm-svn: 91985
This commit is contained in:
Ted Kremenek 2009-12-23 04:09:43 +00:00
parent 49ace5cd62
commit 76d5225271
1 changed files with 4 additions and 0 deletions

View File

@ -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();