]> granicus.if.org Git - clang/commitdiff
add comments.
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 23 Jun 2010 02:06:56 +0000 (02:06 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 23 Jun 2010 02:06:56 +0000 (02:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106616 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/OSAtomicChecker.cpp

index e743528e23997874a15724a7c1fc3308d68781c9..44dcdd4230713bffcd98f303074b93d7909bc5ba 100644 (file)
@@ -100,7 +100,9 @@ bool OSAtomicChecker::EvalOSAtomicCompareAndSwap(CheckerContext &C,
   const GRState *state = C.getState();
   ExplodedNodeSet Tmp;
   SVal location = state->getSVal(theValueExpr);
-  // Here we should use the value type of the region as the load type.
+  // Here we should use the value type of the region as the load type, because
+  // we are simulating the semantics of the function, not the semantics of 
+  // passing argument.
   QualType LoadTy;
   if (const TypedRegion *TR =
       dyn_cast_or_null<TypedRegion>(location.getAsRegion())) {