From 316b5b250790d86dcd9206f06c792548a07105f4 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Wed, 11 Nov 2015 19:28:14 +0000 Subject: [PATCH] ScopInfo: Remove unused return value [NFC] llvm-svn: 252780 --- polly/include/polly/ScopInfo.h | 2 +- polly/lib/Analysis/ScopInfo.cpp | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 20b38418ab81..0946cbf2691a 100644 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -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. /// diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index b16bfa647886..7486e32620f3 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -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(