Fix a bug where child statements could not be identified as being in a CFGBlock in CFGStmtMap::getBlock.

llvm-svn: 110881
This commit is contained in:
Tom Care 2010-08-11 23:36:58 +00:00
parent d59c73f998
commit ec389da6f2
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ CFGBlock *CFGStmtMap::getBlock(Stmt *S) {
// If 'S' isn't in the map, walk the ParentMap to see if one of its ancestors
// is in the map.
while (X) {
SMap::iterator I = SM->find(S);
SMap::iterator I = SM->find(X);
if (I != SM->end()) {
CFGBlock *B = I->second;
// Memoize this lookup.