From b9dda75a0afc8d2294e8bcbc5358ba5316f2f9a6 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 28 Apr 2009 18:48:13 +0000 Subject: [PATCH] Revert 70293. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70313 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/CFRefCount.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 8a8c704d62..538f4f2722 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1904,6 +1904,13 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst, const TypedRegion* R = dyn_cast(MR->getRegion()); + // Blast through TypedViewRegions to get the original region type. + while (R) { + const TypedViewRegion* ATR = dyn_cast(R); + if (!ATR) break; + R = dyn_cast(ATR->getSuperRegion()); + } + if (R) { // Is the invalidated variable something that we were tracking? SymbolRef Sym = state.GetSValAsScalarOrLoc(R).getAsLocSymbol(); -- 2.50.1