diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-24 02:30:48 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-24 02:30:48 +0000 |
commit | d0fd3b747c46211c481021ffb9cabd5635f918ed (patch) | |
tree | ff6cf265e75eb4428f2fc91371bca0eae209563f /lib/Analysis/RegionStore.cpp | |
parent | 20f0178a232029bea7f34adecb6e5bdd6fada483 (diff) |
Add a comment about the signedness.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index cdc8b2723d..73b25955c1 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -273,6 +273,8 @@ SVal RegionStoreManager::getSizeInElements(const GRState* St, if (const StringRegion* SR = dyn_cast<StringRegion>(R)) { const StringLiteral* Str = SR->getStringLiteral(); + // We intentionally made the size value signed because it participates in + // operations with signed indices. return NonLoc::MakeVal(getBasicVals(), Str->getByteLength(), false); } |