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 | 93cef8665cb18108bacc9f9afadc6161b6769ccd (patch) | |
| tree | f3f8de412e26024420eedcf95440c0326fe01a3f | |
| parent | 6611103cfe7a8c08554816fc08abef2e2960e799 (diff) | |
| download | bcm5719-llvm-93cef8665cb18108bacc9f9afadc6161b6769ccd.tar.gz bcm5719-llvm-93cef8665cb18108bacc9f9afadc6161b6769ccd.zip  | |
add comments.
llvm-svn: 106616
| -rw-r--r-- | clang/lib/Checker/OSAtomicChecker.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Checker/OSAtomicChecker.cpp b/clang/lib/Checker/OSAtomicChecker.cpp index e743528e239..44dcdd42307 100644 --- a/clang/lib/Checker/OSAtomicChecker.cpp +++ b/clang/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())) {  | 

