Changeset 4351 for icGREP


Ignore:
Timestamp:
Dec 19, 2014, 12:59:01 PM (5 years ago)
Author:
cameron
Message:

Insertion point should not be within if-stmt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/analysis/useanalysis.cpp

    r4286 r4351  
    8888        return nullptr;
    8989    }
    90     else if (predecessors.size() == 1) {
    91         return *predecessors.begin();
    92     }
    9390    return findLastStatement(predecessors, block.statements());
    9491}
     
    10198        }
    10299        else if (isa<If>(stmt)) {
    103             stmt = findLastStatement(predecessors, cast<If>(stmt)->getBody());
    104             if (stmt) {
     100            Statement * innerstmt = findLastStatement(predecessors, cast<If>(stmt)->getBody());
     101            if (innerstmt) {
    105102                return stmt;
    106103            }
Note: See TracChangeset for help on using the changeset viewer.