[polly] r237440 - Simplify string formatting
Tobias Grosser
tobias at grosser.es
Fri May 15 05:24:10 PDT 2015
Author: grosser
Date: Fri May 15 07:24:09 2015
New Revision: 237440
URL: http://llvm.org/viewvc/llvm-project?rev=237440&view=rev
Log:
Simplify string formatting
Suggested-by: Johannes Doerfert
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=237440&r1=237439&r2=237440&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri May 15 07:24:09 2015
@@ -636,11 +636,8 @@ MemoryAccess::MemoryAccess(const IRAcces
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
More information about the llvm-commits
mailing list