diff options
| -rw-r--r-- | clang/Analysis/GRConstants.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/Analysis/GRConstants.cpp b/clang/Analysis/GRConstants.cpp index 56c45042092..3eff0e0c864 100644 --- a/clang/Analysis/GRConstants.cpp +++ b/clang/Analysis/GRConstants.cpp @@ -225,7 +225,8 @@ ExprVariantTy GRConstants::GetBinding(Expr* E) { } 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() { |

