]> granicus.if.org Git - clang/commitdiff
Remove possibly incorrect assertion that doesn't matter.
authorTed Kremenek <kremenek@apple.com>
Tue, 5 May 2009 00:02:18 +0000 (00:02 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 5 May 2009 00:02:18 +0000 (00:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70943 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicStore.cpp

index 95bb6f1a054432ad4405cc730a692579a255b02e..cf70733d43d1635f1dccbd05a1b1bfa282697104 100644 (file)
@@ -217,9 +217,6 @@ SVal BasicStoreManager::getLValueElement(const GRState* St,
         // char* y = (char*) &x;
         // 'y' => ElementRegion(0, VarRegion('x'))
         // y[0] = 'a';
-        assert(ER->getIndex().isUnknown() ||
-               cast<nonloc::ConcreteInt>(ER->getIndex()).getValue() == 0);
-        ER = ER; // silence 'unused' warning in release modes.
         return Base;
       }