From: Ted Kremenek Date: Tue, 5 May 2009 00:02:18 +0000 (+0000) Subject: Remove possibly incorrect assertion that doesn't matter. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ac5618eab1c706ef16f10b9ecdfa03d7fe341d9;p=clang Remove possibly incorrect assertion that doesn't matter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70943 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/BasicStore.cpp b/lib/Analysis/BasicStore.cpp index 95bb6f1a05..cf70733d43 100644 --- a/lib/Analysis/BasicStore.cpp +++ b/lib/Analysis/BasicStore.cpp @@ -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(ER->getIndex()).getValue() == 0); - ER = ER; // silence 'unused' warning in release modes. return Base; }