forked from OSchip/llvm-project
ScopInfo: Remove unused return value [NFC]
llvm-svn: 252780
This commit is contained in:
parent
fdba4c0121
commit
316b5b2507
|
@ -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.
|
||||
///
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue