]> granicus.if.org Git - clang/commitdiff
Add missing call to Optional<...>.getValue() that was pointed out by Chandler.
authorTed Kremenek <kremenek@apple.com>
Wed, 27 Jan 2010 16:31:37 +0000 (16:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 27 Jan 2010 16:31:37 +0000 (16:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94678 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/RegionStore.cpp

index 7fb9c0fd1b6bc2c476e49ea01be8e8d4e3d3373f..376921f00e64da2661fc69b8e0c22dc71564a1ff 100644 (file)
@@ -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)