[cfe-commits] r46085 - /cfe/trunk/Analysis/GRConstants.cpp

Ted Kremenek kremenek at apple.com
Wed Jan 16 11:28:16 PST 2008


Author: kremenek
Date: Wed Jan 16 13:28:16 2008
New Revision: 46085

URL: http://llvm.org/viewvc/llvm-project?rev=46085&view=rev
Log:
Fixed bug where GRConstants::AddBindings() did not check for values
that were "not a constant."

Modified:
    cfe/trunk/Analysis/GRConstants.cpp

Modified: cfe/trunk/Analysis/GRConstants.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRConstants.cpp?rev=46085&r1=46084&r2=46085&view=diff

==============================================================================
--- cfe/trunk/Analysis/GRConstants.cpp (original)
+++ cfe/trunk/Analysis/GRConstants.cpp Wed Jan 16 13:28:16 2008
@@ -225,7 +225,8 @@
 }
 
 void GRConstants::AddBinding(Expr* E, ExprVariantTy V, bool isBlkLvl) {
-  CurrentState = StateMgr.Add(CurrentState, DSPtr(E,isBlkLvl), V.getVal());
+  if (V) 
+    CurrentState = StateMgr.Add(CurrentState, DSPtr(E,isBlkLvl), V.getVal());
 }
 
 void GRConstants::SwitchNodeSets() {





More information about the cfe-commits mailing list