diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-06-23 02:06:56 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-06-23 02:06:56 +0000 |
commit | 71f219a20ea33390239da825c1b4c8b937a30609 (patch) | |
tree | 6bdfbdd247a7dfee5a81632105a8ef8e6f43e629 /lib/Checker/OSAtomicChecker.cpp | |
parent | 3f8612b46949a73729ef0e0d985cc8cce1ec096f (diff) |
add comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/OSAtomicChecker.cpp')
-rw-r--r-- | lib/Checker/OSAtomicChecker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Checker/OSAtomicChecker.cpp b/lib/Checker/OSAtomicChecker.cpp index e743528e23..44dcdd4230 100644 --- a/lib/Checker/OSAtomicChecker.cpp +++ b/lib/Checker/OSAtomicChecker.cpp @@ -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())) { |