зеркало из https://github.com/microsoft/clang-1.git
Add a comment about the signedness.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59932 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
20f0178a23
Коммит
d0fd3b747c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче