[cfe-commits] r91985 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp

Ted Kremenek kremenek at apple.com
Tue Dec 22 20:09:43 PST 2009


Author: kremenek
Date: Tue Dec 22 22:09:43 2009
New Revision: 91985

URL: http://llvm.org/viewvc/llvm-project?rev=91985&view=rev
Log:
Add stack trace pretty printing in GRExprEngine::VisitLValue().

Modified:
    cfe/trunk/lib/Analysis/GRExprEngine.cpp

Modified: cfe/trunk/lib/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngine.cpp?rev=91985&r1=91984&r2=91985&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Tue Dec 22 22:09:43 2009
@@ -744,6 +744,10 @@
 
 void GRExprEngine::VisitLValue(Expr* Ex, ExplodedNode* Pred,
                                ExplodedNodeSet& Dst) {
+  
+  PrettyStackTraceLoc CrashInfo(getContext().getSourceManager(),
+                                Ex->getLocStart(),
+                                "Error evaluating statement");
 
   Ex = Ex->IgnoreParens();
 





More information about the cfe-commits mailing list