Have ScanReachableSymbols reported reachable regions. Fixes a false positive with nested array literals. <rdar://problem/10686586>
llvm-svn: 151012
This commit is contained in:
@@ -553,6 +553,10 @@ bool ScanReachableSymbols::scan(const MemRegion *R) {
|
||||
if (isVisited)
|
||||
return true;
|
||||
isVisited = 1;
|
||||
|
||||
|
||||
if (!visitor.VisitMemRegion(R))
|
||||
return false;
|
||||
|
||||
// If this is a symbolic region, visit the symbol for the region.
|
||||
if (const SymbolicRegion *SR = dyn_cast<SymbolicRegion>(R))
|
||||
|
||||
Reference in New Issue
Block a user