aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/RegionStore.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-01-27 16:31:37 +0000
committerTed Kremenek <kremenek@apple.com>2010-01-27 16:31:37 +0000
commit39c2ea1dea119ef28f96ed767abc87252932476a (patch)
treeb31b79acd9660508b405011ab5321c929131d666 /lib/Checker/RegionStore.cpp
parentda8e5850414cdb46c5908ac1326e2b92155eb8fb (diff)
Add missing call to Optional<...>.getValue() that was pointed out by Chandler.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/RegionStore.cpp')
-rw-r--r--lib/Checker/RegionStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/RegionStore.cpp b/lib/Checker/RegionStore.cpp
index 7fb9c0fd1b..376921f00e 100644
--- a/lib/Checker/RegionStore.cpp
+++ b/lib/Checker/RegionStore.cpp
@@ -1596,7 +1596,7 @@ const GRState *RegionStoreManager::BindArray(const GRState *state,
// We assume that string constants are bound to
// constant arrays.
- uint64_t size = Size;
+ uint64_t size = Size.getValue();
for (uint64_t i = 0; i < size; ++i, ++j) {
if (j >= len)