From: Zhongxing Xu Date: Mon, 14 Dec 2009 02:13:39 +0000 (+0000) Subject: Use insert to avoid destroying existing nodes. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fbb1ba55857d9029eb13d1d3e51dd97f2d96372;p=clang Use insert to avoid destroying existing nodes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91258 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index fc7bd34661..4e88f18d0c 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -418,7 +418,7 @@ void GRExprEngine::ProcessStmt(Stmt* S, GRStmtNodeBuilder& builder) { CleanedState, SymReaper); if (Checkers.empty()) - Tmp = Tmp2; + Tmp.insert(Tmp2); else { ExplodedNodeSet Tmp3; ExplodedNodeSet *SrcSet = &Tmp2;