[cfe-commits] r75738 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Ted Kremenek
kremenek at apple.com
Tue Jul 14 21:23:32 PDT 2009
Author: kremenek
Date: Tue Jul 14 23:23:32 2009
New Revision: 75738
URL: http://llvm.org/viewvc/llvm-project?rev=75738&view=rev
Log:
Relax assertion.
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=75738&r1=75737&r2=75738&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Tue Jul 14 23:23:32 2009
@@ -838,7 +838,8 @@
SVal idx = ValMgr.makeIntVal(0, Ctx.IntTy);
R = MRMgr.getElementRegion(T, idx, R, Ctx);
RTy = T;
- assert(RTy == R->getValueType(Ctx));
+ assert(Ctx.getCanonicalType(RTy) ==
+ Ctx.getCanonicalType(R->getValueType(Ctx)));
}
if (RTy->isStructureType())
More information about the cfe-commits
mailing list