Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/polly/lib
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-05-15 15:24:09 +0300
committerTobias Grosser <tobias@grosser.es>2015-05-15 15:24:09 +0300
commite29d31ce5a29b2b6fd502df9e13cb31660998efe (patch)
treeb1082d777304dfa0225dce3e417fb0b67947e49c /polly/lib
parentc0661aeaf8daf371023cf5669be4bd9b428882d0 (diff)
Simplify string formatting
Suggested-by: Johannes Doerfert llvm-svn: 237440
Diffstat (limited to 'polly/lib')
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index f9ef7b2a02f5..cffec3b53e3d 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -636,11 +636,8 @@ MemoryAccess::MemoryAccess(const IRAccess &Access, Instruction *AccInst,
isl_id *BaseAddrId = SAI->getBasePtrId();
- std::string IdName;
- raw_string_ostream IdNameStream(IdName);
- IdNameStream << "__polly_array_ref_ " << Identifier;
- IdNameStream.flush();
- this->Id = isl_id_alloc(Ctx, IdName.c_str(), nullptr);
+ auto IdName = "__polly_array_ref_ " + std::to_string(Identifier);
+ Id = isl_id_alloc(Ctx, IdName.c_str(), nullptr);
if (!Access.isAffine()) {
// We overapproximate non-affine accesses with a possible access to the