Author: kremenek
Date: Tue Apr 28 13:48:13 2009
New Revision: 70313
URL: http://llvm.org/viewvc/llvm-project?rev=70313&view=rev
Log:
Revert 70293.
Modified:
cfe/trunk/lib/Analysis/CFRefCount.cpp
Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=70313&r1=70312&r2=70313&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Tue Apr 28 13:48:13 2009
@@ -1904,6 +1904,13 @@
const TypedRegion* R = dyn_cast<TypedRegion>(MR->getRegion());
+ // Blast through TypedViewRegions to get the original region type.
+ while (R) {
+ const TypedViewRegion* ATR = dyn_cast<TypedViewRegion>(R);
+ if (!ATR) break;
+ R = dyn_cast<TypedRegion>(ATR->getSuperRegion());
+ }
+
if (R) {
// Is the invalidated variable something that we were tracking?
SymbolRef Sym = state.GetSValAsScalarOrLoc(R).getAsLocSymbol();
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits