]> granicus.if.org Git - clang/commitdiff
Improve comments.
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 24 Aug 2010 04:26:55 +0000 (04:26 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 24 Aug 2010 04:26:55 +0000 (04:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111897 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/GRCXXExprEngine.cpp

index 53c9ab67e17ab9f4269cebfc4cb047e92e4c6311..a49989b5fda547fee205573b308747554c6050c2 100644 (file)
@@ -106,7 +106,8 @@ void GRExprEngine::VisitCXXConstructExpr(const CXXConstructExpr *E, SVal Dest,
   for (ExplodedNodeSet::iterator NI = ArgsEvaluated.begin(),
                                  NE = ArgsEvaluated.end(); NI != NE; ++NI) {
     const GRState *state = GetState(*NI);
-    // Setup 'this' region.
+    // Setup 'this' region, so that the ctor is evaluated on the object pointed
+    // by 'Dest'.
     state = state->bindLoc(loc::MemRegionVal(ThisR), Dest);
     ExplodedNode *N = Builder->generateNode(Loc, state, Pred);
     if (N)