]> granicus.if.org Git - clang/commitdiff
Use the correct predecessor node.
authorTed Kremenek <kremenek@apple.com>
Thu, 30 Oct 2008 18:37:08 +0000 (18:37 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 30 Oct 2008 18:37:08 +0000 (18:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58446 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 935fd30e53bad34f52faf57968609ed11261d8b3..c8d4722442a0f86c00de2349cd54a7b167c03e43 100644 (file)
@@ -1678,7 +1678,7 @@ void GRExprEngine::VisitInitListExpr(InitListExpr* E, NodeTy* Pred,
           SVal V = NonLoc::MakeCompoundVal(T, NewVals, getBasicVals());
 
           // Make final state and node.
-          MakeNode(Dst, E, Pred,  BindExpr(state, E, V));
+          MakeNode(Dst, E, *NI, BindExpr(state, E, V));
         }
         else {
           // Still some initializer values to go.  Push them onto the worklist.