]> granicus.if.org Git - clang/commitdiff
Adjust assertion in RegionStoreManager::RetrieveArray() to also take into account...
authorTed Kremenek <kremenek@apple.com>
Tue, 14 Sep 2010 23:29:38 +0000 (23:29 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 14 Sep 2010 23:29:38 +0000 (23:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113893 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/RegionStore.cpp

index 8c3763778d8149033e2ed7412cbcdaab16d4d5a5..4051f4d39b8c9f9feeef82843da23cf0e5088401 100644 (file)
@@ -1306,7 +1306,7 @@ SVal RegionStoreManager::RetrieveStruct(Store store, const TypedRegion* R) {
 }
 
 SVal RegionStoreManager::RetrieveArray(Store store, const TypedRegion * R) {
-  assert(isa<ConstantArrayType>(R->getValueType()));
+  assert(Ctx.getAsConstantArrayType(R->getValueType()));
   return ValMgr.makeLazyCompoundVal(store, R);
 }