]> granicus.if.org Git - clang/commitdiff
Add comments.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 3 Jun 2010 06:19:01 +0000 (06:19 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 3 Jun 2010 06:19:01 +0000 (06:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105382 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/GRExprEngine.cpp

index 24176586728cce6f0687c83fa9edde85d02d6b77..8f3ff969a74c0b2dbc4b03d918edf5f04b7f0f4f 100644 (file)
@@ -1940,7 +1940,8 @@ void GRExprEngine::VisitCall(CallExpr* CE, ExplodedNode* Pred,
 
   // Finally, perform the post-condition check of the CallExpr and store
   // the created nodes in 'Dst'.
-
+  // If the callee returns a reference and we want an rvalue, skip this check
+  // and do the load.
   if (!(!asLValue && CalleeReturnsReference(CE))) {
     CheckerVisit(CE, Dst, DstTmp3, false);
     return;