ScopInfo: Remove unused return value [NFC]

llvm-svn: 252780
This commit is contained in:
Tobias Grosser 2015-11-11 19:28:14 +00:00
parent fdba4c0121
commit 316b5b2507
2 changed files with 4 additions and 6 deletions

View File

@ -1298,7 +1298,7 @@ private:
///
/// @param BB The basic block we build the statement for (or null)
/// @param R The region we build the statement for (or null).
ScopStmt *addScopStmt(BasicBlock *BB, Region *R);
void addScopStmt(BasicBlock *BB, Region *R);
/// @param Update access dimensionalities.
///

View File

@ -3235,20 +3235,18 @@ mapToDimension(__isl_take isl_union_set *Domain, int N) {
return isl_multi_union_pw_aff_from_union_pw_multi_aff(Data.Res);
}
ScopStmt *Scop::addScopStmt(BasicBlock *BB, Region *R) {
ScopStmt *Stmt;
void Scop::addScopStmt(BasicBlock *BB, Region *R) {
if (BB) {
Stmts.emplace_back(*this, *BB);
Stmt = &Stmts.back();
auto Stmt = &Stmts.back();
StmtMap[BB] = Stmt;
} else {
assert(R && "Either basic block or a region expected.");
Stmts.emplace_back(*this, *R);
Stmt = &Stmts.back();
auto Stmt = &Stmts.back();
for (BasicBlock *BB : R->blocks())
StmtMap[BB] = Stmt;
}
return Stmt;
}
void Scop::buildSchedule(