add comments.

llvm-svn: 106616
This commit is contained in:
Zhongxing Xu 2010-06-23 02:06:56 +00:00
parent 6611103cfe
commit 93cef8665c
1 changed files with 3 additions and 1 deletions

View 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())) {