[cfe-commits] r58243 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Mon Oct 27 05:23:17 PDT 2008
Author: zhongxingxu
Date: Mon Oct 27 07:23:17 2008
New Revision: 58243
URL: http://llvm.org/viewvc/llvm-project?rev=58243&view=rev
Log:
We cannot get precise lvalue for symbolic base array region.
Modified:
cfe/trunk/lib/Analysis/RegionStore.cpp
Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=58243&r1=58242&r2=58243&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Mon Oct 27 07:23:17 2008
@@ -168,6 +168,9 @@
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.
More information about the cfe-commits
mailing list