forked from OSchip/llvm-project
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:
parent
d59c73f998
commit
ec389da6f2
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue