We cannot get precise lvalue for symbolic base array region.

llvm-svn: 58243
This commit is contained in:
Zhongxing Xu 2008-10-27 12:23:17 +00:00
parent c6db58a6bd
commit 36d4ade4be
1 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,9 @@ SVal RegionStoreManager::getLValueElement(const GRState* St,
if (Base.isUnknownOrUndef())
return Base;
if (isa<loc::SymbolVal>(Base))
return Base;
loc::MemRegionVal& BaseL = cast<loc::MemRegionVal>(Base);
// We expect BaseR is an ElementRegion, not a base VarRegion.